Author Topic: Auto-Playlist - check compound of multiple existing tags against single field ?  (Read 766 times)

alec.tron

  • Hero Member
  • *****
  • Posts: 742
Heya,
for those Auto-Playlist / Musicbee syntax specialists among you guys...

I have a compound field where I occasionally inject multiple other fields' values into.
i.e. a file with:
'Rating' value of:
3
and a custom tag, let's call it 'Happyness', of:
5

I have a metadata field, lets call it 'Compound', which then reads like this:
5 - 3

Now, I want to create an auto-playlist where I only pick up tracks where the 'Compound' field has gotten out of sync...
i.e. Rating changed to 2, but the 'Compound' field now still lists:
5 - 3
not:
5 - 2
as it should.

Is there a way to format
'has value'
AND
'is not'
to compare a single fields' values to the re-formatted value of other fields ?
i.e. foobar-esque like:
 
%Happyness% - %Rating%

?

Any ideas, shoot!
Churs.
c.

redwing

  • Guest
I have requested such direct use of functions in auto-playlists & filters, but it's not implemented yet: https://getmusicbee.com/forum/index.php?topic=25062.0

For now you have to use a virtual tag in auto-playlists if you want to use functions.
For your case, create a virtual tag with the following code:

Code
$IsNull(<Compound>,,$If(<Compound>=<Happyness>" - "<Rating>,,<Happyness>" - "<Rating>))
And create an auto-playlist with the rule that the virtual tag has a value. Then it will only list out-of-sync tracks (I assume both <Compound> and <Happyness> fields are custom tags, otherwise it won't work).

alec.tron

  • Hero Member
  • *****
  • Posts: 742
Awesome, thanks redwing!
I'll try that later tonight when back at the machine in question.
Churs.
c.