Author Topic: Mathematical operators for virtual tags  (Read 10545 times)

Bee-liever

  • Member
  • Hero Member
  • *****
  • Posts: 3640
  • MB Version: 3.4.7737 P
Addition of arithmetic operators (as per MP3tag) to the virtual tag functions for any 'number' configured fields:
$Add(<field1>,<field2>) adds fields 1 & 2
$Sub(<field1>,<field2>) subtracts field2 from field1

would be greatly appreciated ( by me  ;D  )
MusicBee and my library - Making bee-utiful music together


redwing

  • Guest


Zak

  • Member
  • Hero Member
  • *****
  • Posts: 1977
I'm curious what you would use these for.
Bee excellent to each other...

Gary Young

  • Full Member
  • ***
  • Posts: 145
I'm curious what you would use these for.
@Zak: As I stumbled upon both - this thread and the preceding - so here's the background:

http://getmusicbee.com/forum/index.php?topic=8979.0

Pingaware

  • Hero Member
  • *****
  • Posts: 1095
I've had one or two situations come up with my virtual tags where being able to use very basic numerical operators (+, -, *, /) on tags defined as the number type in the Fields Layout panel would have been very useful. So far I've been able to work round these things, but I know I'm going to need to make a modification to one of my current virtual tags that I can't see a way round without being able to use something like <Virtual Tag 1>*2.

Any chance these can be introduced Steven? They would obviously only work for fields defined as the number type. I don't think anything other than +, -, * and / would be needed, possibly also with the ability to use brackets.
Bold words in my posts are links unless expressly stated otherwise. Have fun with them!

psychoadept

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10309
+1
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest beta patch (3.4)
(Unzip and overwrite existing program files)


Bee-liever

  • Member
  • Hero Member
  • *****
  • Posts: 3640
  • MB Version: 3.4.7737 P
+1 from me and the other +1's from my wish for the same thing (http://getmusicbee.com/forum/index.php?topic=9008.0)

NB. Maybe a kind and helpful moderator could merge these 2 threads into 1?  Please.
MusicBee and my library - Making bee-utiful music together

Pingaware

  • Hero Member
  • *****
  • Posts: 1095
I was pretty sure you'd have made a thread Bee-liever, as I saw in my search on the board that you'd found situations where you'd need to use them. However, totally failed to find that topic in my searching!
Bold words in my posts are links unless expressly stated otherwise. Have fun with them!

Bee-liever

  • Member
  • Hero Member
  • *****
  • Posts: 3640
  • MB Version: 3.4.7737 P
No worries Pingaware.
Took me a while to find it - and I posted that thread  :D
MusicBee and my library - Making bee-utiful music together

Pingaware

  • Hero Member
  • *****
  • Posts: 1095
Apologies for the bump, but now seems the right time to bring it up again. (Inspired by redwing's wishlist bumps :P)
Bold words in my posts are links unless expressly stated otherwise. Have fun with them!

MeeMeeMee

  • Full Member
  • ***
  • Posts: 199
I don't know about adding values of tags (of same track, I assume), I'd like to be able to display the duration of a group. Some examples:
  • Duration of CD1
  • Duration of Schubert's Piano Trio D929. All its track have the same Set Subtitle tag, and I use it in a sub-header virtual tag.

Maybe it's too specific or complicated for a function.
MusicBee 3.3.7491 / WASAPI (Shared)
Windows 10 pro version 1909 (64-bit) / Intel i5-3470 / 8GB RAM
Media on NAS (shared using CIFS)
13K+ tracks, predominantly FLAC (~1000 albums) ; converted to mp3 (lame -V 0) when synced to my Cowon D2+

theta_wave

  • Hero Member
  • *****
  • Posts: 671
+1

Especially if a COUNTA function could be added (count fields that are not empty).  It could count # of tracks or albums for an artist.