Author Topic: Additional Tagging & Reporting Tools  (Read 1156917 times)

boroda

  • Hero Member
  • *****
  • Posts: 5219
http://www.mediafire.com/file/4e198toyx9rmsyo/mb_TagTools_2018-01-15-beta.zip

------------------------

new virtual tag functions:

$Random(range)

$Add(number1,number2)

$Sub(number1,number2)

$Mul(number1,number2)

$Div(number1,number2)

$AddDuration(duration1,duration2)

$SubDate(date1,date2)

$IfElse(condition,result1,result2)

$And(parameter1,parameter2)

$Or(parameter1,parameter2)

$Xor(parameter1,parameter2)

$Not(parameter)

-------------------------------

'Reencode tag' command is replaced by 'Reencode tags' command. cuesheets are supported.

boroda

  • Hero Member
  • *****
  • Posts: 5219
@Steven, am i correct that mb native comparisons (=, <, >, etc.) return "T" for true and "F" for false?

boroda

  • Hero Member
  • *****
  • Posts: 5219
http://www.mediafire.com/file/n3b670vkwmoxfud/mb_TagTools_2018-01-15-3-beta.zip

function $IfElse is removed, use native mb function $If instead.

new function $NumberOfDays(date) is added. it returns number of days between 'date' and current date.

some bug fixes.

redwing

  • Guest
'Reencode tag' command is replaced by 'Reencode tags' command. cuesheets are supported.

Thanks for the update! I'll report back after testing it.

redwing

  • Guest
It doesn't seems to read external cuesheet file. The re-encode tags command preview dialog shows filename (same for all tracks) rather than tags in the cuesheet.

boroda

  • Hero Member
  • *****
  • Posts: 5219
hmm. preview works as it was earlier. if preview showed tags previously then i don't understand why it shows filenames now. Steven?

redwing

  • Guest
It always showed filename for files with external cuesheet. So no differences.

boroda

  • Hero Member
  • *****
  • Posts: 5219
Steven, could you make mb to read cuesheet tags by api call GetFileTag() as it displays tags in main view?

boroda

  • Hero Member
  • *****
  • Posts: 5219
Probably there are better ways of doing this, but I could suggest the following workflow with the given example:

Performer tag before:
Göteborgs Symfoniker (orchestra); Vladimir Chernov (baritone vocals); Sergej Larin (tenor vocals)

Custom Text:
soprano vocals; mezzo-soprano vocals; alto vocals; tenor vocals; baritone vocals; bass vocals; choir vocals; orchestra

Performer tag after:
Sergej Larin (tenor vocals); Vladimir Chernov (baritone vocals); Göteborgs Symfoniker (orchestra)

- assign a number to each role in custom list from 1: tenor gets 4, baritone 5, orchestra 8.
- substitute the role with the assigned number: Sergej Larin (4), etc.
- sort values by the numbered role in ascending order: Sergej Larin (4) will come first.
- substitute each number with its original role: Sergej Larin (4) becomes Sergej Larin (tenor vocals), etc.

redwing, try new asr preset 'sort artists by role':

http://www.mediafire.com/file/cty3tnqgc7mtt2q/mb_TagTools_2018-01-16-beta.zip

redwing

  • Guest
Thanks! I just tried it but that's not what I wanted. Maybe I should have been clearer.
- No need to touch display artist value. It's up to the user whether to change it or not or how to change it afterwards.
- The request is only about changing Performer tag's order following a custom list.
- The performer tag has special implementation with its role/instrument even though the role is part of tag value.


boroda

  • Hero Member
  • *****
  • Posts: 5219
could you pm me one of tracks with role/instrument as i don't understand how all these are formatted?


boroda

  • Hero Member
  • *****
  • Posts: 5219
redwing, try new version. don't forget to reimport presets.

http://www.mediafire.com/file/y9aaecgxnb6eib0/mb_TagTools_2018-01-19-beta.zip
Last Edit: January 19, 2018, 07:27:40 PM by boroda74

redwing

  • Guest
Now it's working as expected. Thanks a lot!

One thing I noticed is it doesn't seem to compare new values and old values and overwrites everything even when the values are the same.

redwing

  • Guest
'Reencode tag' command is replaced by 'Reencode tags' command. cuesheets are supported.

Aside from the cuesheet issue, I don't really see much progress with this tool. It now supports only three tags: album artist, album, and title. Previously it was possible to fix other tags as well. Also no support for changing code page in preview mode, which makes really hard to figure out what combination of code pages needs to be chosen for proper encoding.

The foobar component shows only tags with garbled text (both for file tags and cuesheet fields). If no such text, it shows nothing in the dialog. But it works only for displayed tags. This tool could work better by inspecting all tags regardless of displayed tags and only showing tags with garbled text, if none then show nothing.