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

boodahbellie

  • Jr. Member
  • **
  • Posts: 21
which plugin version are you using? tools> additional tagging & reporting tools> see version number at the bottom of submenu.

v7.3.8740.43100

Upgraded to v8.1.8881.22127 from above and the issue disappears.
Last Edit: April 25, 2024, 09:38:40 PM by boodahbellie

boroda

  • Hero Member
  • *****
  • Posts: 5316
new version:

I have found that the present Move everything after <Custom text 2> from <Tag 1> to <Tag 2> works the opposite from what (I think) it's supposed to do.
...
Using the exact same criteria, but with the preset Move everything before <Custom text 1> from <Tag 1> to <Tag 2> works the way I think the after present should be working.

i've fixed this. thanks phred for finding this issue. you might want to reinstall predefined presets.

-----------

* "Change Case" dedicated command and related ASR presets fixes

* New virtual tag functions:
    $TitleCase(string)
    $TitleCase2(string,excepted_words)
    $TitleCase3(string,excepted_words,word_splitters)
    $TitleCase4(string,excepted_words,word_splitters,exception_chars)

where:
    excepted_words: list of words separated by spaces, which will become lowercase (except for the 1st and the last words)
    word_splitters: list of characters separated by spaces, which must be treated as word splitters. i'd recommend to enclose the list into quotes (e.g. "& . -")
    exception_chars: list of characters separated by spaces after which the words become lowercase (e.g. ' for something like "Someone's")

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

the only known bug at the moment is completely vague to me Bee-liever's bug report. i'm neither able to reproduce this nor understand why this would happen.

https://www.mediafire.com/file/odmp6wgn9hg7hfi/mb_TagTools_debug.zip/file
Last Edit: April 26, 2024, 09:12:47 AM by boroda

Bee-liever

  • Member
  • Hero Member
  • *****
  • Posts: 3879
  • MB Version: 3.6.9318P
the only known bug at the moment is completely vague to me Bee-liever's bug report. i'm neither able to reproduce this nor understand why this would happen.

Woo!  8.1.8881.31436 is almost working perfectly.
LR presets preview and run correctly
$LR(<URL>,function_id) works correctly for virtual tag

Only problem is when you try to use that virtual rag in a playlist or for highlighting, MB becomes unresponsive, eventually needing to shutdown and restarted.
No error log is created.
MusicBee and my library - Making bee-utiful music together


hiccup

  • Hero Member
  • *****
  • Posts: 9190
@Bee-liever, 1st error means that you have duplicated tracks in the library. it should be fixed now:
https://www.mediafire.com/file/16sid3j34j3da4s/Tagging+Tools_2024-04-25.zip/file
Should that be a non-debugging version that should be used by the 'general population'?

I am asking because two posts lower you offer a download for a debugging version, but this first one also has some .pdb file included, which I assume is for debugging?

boroda

  • Hero Member
  • *****
  • Posts: 5316
* New virtual tag functions:
Yes I will  ;-)

@hiccup, i've appreciated your joke  ;)

@Bee-liever, 1st error means that you have duplicated tracks in the library. it should be fixed now:
https://www.mediafire.com/file/16sid3j34j3da4s/Tagging+Tools_2024-04-25.zip/file
Should that be a non-debugging version that should be used by the 'general population'?

I am asking because two posts lower you offer a download for a debugging version, but this first one also has some .pdb file included, which I assume is for debugging?

no. i'll upload the release version in a couple of days because Bee-liever's problem seems to be solved. i still need to update documentation (because now the single documentation sources are used for included in plugin .zip .chm files, readme on plugin's add-on page and github documentation).

boroda

  • Hero Member
  • *****
  • Posts: 5316
Only problem is when you try to use that virtual rag in a playlist or for highlighting, MB becomes unresponsive, eventually needing to shutdown and restarted.

i don't think it's a bug. mostly likely it's just slow. i can re-enable LR function result caching in the plugin (i've commented out this code because MB-native caching is working fine for me), but i'm not sure if it improves situation significantly. do you consider this issue important?

p.s. it's much better to calculate LR functions at startup, saving their results to custom tags to avoid freezes and slowdowns.

btw, i understand what you mean by "use virtual tag for highlighting", but what do you mean by "use virtual tag for playlist"? auto-playlists?

boroda

  • Hero Member
  • *****
  • Posts: 5316
* New virtual tag functions:
Yes I will  ;-)

@hiccup, here is my common style of virtual tag function descriptions (when these descriptions are not copied from source code  :D ):

    $TitleCase(string)
    $TitleCase2(string,excepted_words)
    $TitleCase3(string,excepted_words,word_splitters)
    $TitleCase4(string,excepted_words,word_splitters,exception_chars)

Bee-liever

  • Member
  • Hero Member
  • *****
  • Posts: 3879
  • MB Version: 3.6.9318P
btw, i understand what you mean by "use virtual tag for highlighting", but what do you mean by "use virtual tag for playlist"? auto-playlists?
Yes, in auto-playlists

p.s. it's much better to calculate LR functions at startup, saving their results to custom tags to avoid freezes and slowdowns.
I am running the LR at startup but not saving to custom tag.
Didn't need to do that with old ALR

i don't think it's a bug. mostly likely it's just slow. i can re-enable LR function result caching in the plugin (i've commented out this code because MB-native caching is working fine for me), but i'm not sure if it improves situation significantly. do you consider this issue important?
I think it's more than just being slow - I've waited for almost 2 hours and the virtual tag still wouldn't load into MB.
If I set that same virtual tag as a displayed field it loads as normal and works fine.
MusicBee and my library - Making bee-utiful music together

hiccup

  • Hero Member
  • *****
  • Posts: 9190
Just an ocd observation:

By default:

- Neither of the two font options is checked.
   Isn't using MusicBee font the default and shouldn't it be displaying a check by default?


boroda

  • Hero Member
  • *****
  • Posts: 5316
I think it's more than just being slow - I've waited for almost 2 hours and the virtual tag still wouldn't load into MB.
If I set that same virtual tag as a displayed field it loads as normal and works fine.

aggregated functions are rather slow by their nature. but if you use them for main track list then MB/plugin needs to calculate them only for displayed tracks (actually, for all tracks in the library, which have the same grouping tags as displayed tracks). it's relatively fast. if you use aggregated functions in auto-playlists or for sorting/grouping, then MB/plugin needs to calculate them for the entire library. obviously, it's much slower.

i've just tested sample LR preset "<album unique id>/count(<kind>)" in auto-playlist:

* auto-playlist is very fast for my test library
* it's dramatically slow for my main library (9210 files only)

I am running the LR at startup but not saving to custom tag.
Didn't need to do that with old ALR

ok. i'll try to find my old source code and test it in auto-playlists. maybe i've indeed over-optimized the new code.

boroda

  • Hero Member
  • *****
  • Posts: 5316
- Neither of the two font options is checked.
   Isn't using MusicBee font the default and shouldn't it be displaying a check by default?

i don't think so. even if the current MB font (default or not) is accidentally coincided with plugin's own default font. checked option means that plugin will follow any changes of MB font in the future.

hiccup

  • Hero Member
  • *****
  • Posts: 9190
i don't think so. even if the current MB font (default or not) is accidentally coincided with plugin's own default font. checked option means that plugin will follow any changes of MB font in the future.
Thanks for explaining.
It indeed works as you suggested, I now understand.

boroda

  • Hero Member
  • *****
  • Posts: 5316
I think it's more than just being slow - I've waited for almost 2 hours and the virtual tag still wouldn't load into MB.
If I set that same virtual tag as a displayed field it loads as normal and works fine.

aggregated functions are rather slow by their nature. but if you use them for main track list then MB/plugin needs to calculate them only for displayed tracks (actually, for all tracks in the library, which have the same grouping tags as displayed tracks). it's relatively fast. if you use aggregated functions in auto-playlists or for sorting/grouping, then MB/plugin needs to calculate them for the entire library. obviously, it's much slower.

i've just tested sample LR preset "<album unique id>/count(<kind>)" in auto-playlist:

* auto-playlist is very fast for my test library
* it's dramatically slow for my main library (9210 files only)

current observations: have tried to select this playlist, when i'm on the main library, running MB in debugger, $LR() function is properly invoked, i.e. it just freezing.

boroda

  • Hero Member
  • *****
  • Posts: 5316
p.s. it's much better to calculate LR functions at startup, saving their results to custom tags to avoid freezes and slowdowns.
I am running the LR at startup but not saving to custom tag.
Didn't need to do that with old ALR

you are wrong. i have compiled plugin source from 2022-06-08 (which has separate ALR command and $ALR() function); $ALR() function is working fast for the mentioned sample preset if used in the track list, but it's dramatically freezing if used in auto-playlists.