Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.
Also make sure you've read the Forum Guidelines before posting in this forum.
![]() ![]() |
Jun 12 2012, 04:18
Post
#1
|
|
|
Member Group: Full Members Posts: 81 Joined: 14-September 10 From: Providence RI Member No.: 12931 Mp3tag Version: 2.52 |
Hello,
I'm trying to figure out how to properly use a filter expression on file names to fix BPM tags that somehow got messed up on my part. The file names could look like: {4} - MASTERMIX MASHED UP--X-PRESS 2 VS. GAT DECOR--BPM(131-206)--BITRATE(128)--YEAR(2002)--12INCH(NO).mp3 {4} - MASTERMIX MASHED UP--X-PRESS 2 VS. GAT DECOR--BPM(98-134)--BITRATE(128)--YEAR(2002)--12INCH(NO).mp3 I want the filter expression to only show me files from a loaded directory where the bpm has a "-" present in the file name. Where the first lower bpm could be a double or a triple digit. I've tried: %_filename% HAS BPM(***- %_filename% HAS BPM(???- I'm assuming a regular expression can be used with wildcards to search for the "-" but I'm not sure how to work it out. Can someone provide some guidance? I have the script to correct file name to tags to fix my issues, I just need the filter expression to drill down hundreds of files where only several may have the "-" within the file name itself for correction. thanks Chris |
|
|
|
Jun 12 2012, 04:40
Post
#2
|
|
![]() Member Group: Full Members Posts: 774 Joined: 18-April 05 Member No.: 1742 Mp3tag Version: 2.55a |
http://help.mp3tag.de/main_filter.html
<field> MATCHES <regexp> Returns only files where the content of the tag field named <field> matches against the regular expression <regexp>. You can use * to address all fields. Try this: %_filename% MATCHES BPM\(\d{2,3}- This post has been edited by JJ Johnson: Jun 12 2012, 04:42 |
|
|
|
Jun 12 2012, 04:56
Post
#3
|
|
![]() Member Group: Full Members Posts: 405 Joined: 3-December 10 From: Ireland Member No.: 13334 Mp3tag Version: 2.54 |
I've tried: %_filename% HAS BPM(***- %_filename% HAS BPM(???- You need to use MATCHES as this searches a regular exp in filters. See <field> MATCHES <regexp> at Filtering files and tags (Searching) to learn other functions which you may find useful. Theres examples at the bottom of the page. YOUR FILTER %_filename% MATCHES "BPM\(\d{2,3}-" -------------------- I ♥ singing Dubstep ♪♫WOOB WOOB WOOB WOOB UBB OHMOMOMO DROP WOOOOOOB WOOB WOOB WOOB WUB WUB WUB WUB WUB WUB WUB WUB MOMOMO WOOB WOOB♫♪
|
|
|
|
Jun 12 2012, 04:58
Post
#4
|
|
![]() Member Group: Full Members Posts: 405 Joined: 3-December 10 From: Ireland Member No.: 13334 Mp3tag Version: 2.54 |
%_filename% MATCHES BPM\(\d{2,3}- Was just typing that out and I seen you already replied -------------------- I ♥ singing Dubstep ♪♫WOOB WOOB WOOB WOOB UBB OHMOMOMO DROP WOOOOOOB WOOB WOOB WOOB WUB WUB WUB WUB WUB WUB WUB WUB MOMOMO WOOB WOOB♫♪
|
|
|
|
Jun 12 2012, 13:43
Post
#5
|
|
|
Member Group: Full Members Posts: 81 Joined: 14-September 10 From: Providence RI Member No.: 12931 Mp3tag Version: 2.52 |
Worked great, thanks guys, I have used the other terms like HAS NOT etc, but this is the first time I had to search a file name this way for files that I have already "fixed" for my naming conventions. I think when I pass over the main filter I use to clean up tags, I forgot to fix part of the tags like I normally do, luckily the file name has the info I use.
For some background to clarify that mess I call a paragraph above, I use Serato, and a lot of songs have transitional BPM's as you can see, but Serato does not show any non number, so I put the remaining bpm into the label field. My master filter cleans up all the tags and nuked anything after the - Thanks again for helping me out, saves me a lot of time an effort. Cheers |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th May 2013 - 18:07 |