I'm trying to synchronize my file name mask from MediaMonkey with MusicBee. It's quite an adventure!
My mediamonkey sorting rule looks like this:
D:\Audio\$if(<Album Artist>=Various,$if(<Genre>=Top40,Top40,),Artists)\<Album Artist>\(<Year>) <Album>\$if(<Disc#>,<Disc#>-,)$if($len(<Track#>)<3,<Track#:2>,<Track#>) <Artist> - <Title>
I use 3 folders:
\Various (for all compilation albums)
\Artists (for all non-compilation albums)
\Top40 (for the dutch Top40 collection by Spammetje et all)
The $if(<Album Artist>=Various,$if(<Genre>=Top40,Top40,),Artists) makes sure it is sorted correctly. This one is easily translated to MusicBee with <if(<Album Artist>=Various,<if(<Genre>=Top40,Top40,),Artists)>.
Then the $if(<Disc#>,<Disc#>-,) makes sure that if the tag Disc# is filled, the value and an "-" is added. Otherwise skip the Disc#.
Musicbee Translation: <IsNull(<Disc Count>,,<Disc Count>-)>
$if($len(<Track#>)<3,<Track#:2>,<Track#>) makes sure that tracklengths shorter than 3 characters are padded to two. so you'll get 02 instead of 2. Anything longer than 3 is not to be touched. Reason for this is some strange behaviour in Mediamonkey when tracknumbers contain letters (e.g. 125b) and are longer than 2 characters. Mediamonkey would pad the track# to the first two characters as these are numbers and the a is a letter. The result would be 12 opposed to "leave me be 125b".
*EDIT1*
Just tested <Pad(<Track#>,2)> and this works perfect anything smaller than 2 characters is padded to two, anything larger is untouched.
Also track# that contain a single letter (A-z) remain a letter. I use these for anything vinyl (track A, B, AA etc.).
*/EDIT1*
*EDIT2*
Since only the Top40 structure contains more than 100 tracks per album (CD limit is 99) I added the 3 character padding to these files by checking <if(<Genre>=Top40,<Pad(<Track#>,3)>,<Pad(<Track#>,2)>)>
So my current template looks like this:
D:\Audio\<if(<Album Artist>=Various,<if(<Genre>=Top40,Top40,)>,Artists)>\<Album Artist>\"("<Year>")" <Album>\<IsNull(<Disc Count>,,<Disc Count>-)><if(<Genre>=Top40,<Pad(<Track#>,3)>,<Pad(<Track#>,2)>)> <Artist> - <Title>
I know a lot of you have beautiful file naming templates as well. Feel free to post with an explanation of the interesting parts :) So we all can learn...
Cheers,
disone