getmusicbee.com

General => MusicBee Wishlist => Topic started by: Bee-liever on February 24, 2013, 01:42:18 AM

Title: Mathematical operators for virtual tags
Post by: Bee-liever on February 24, 2013, 01:42:18 AM
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  )
Title: Re: added scripting functions
Post by: paq on February 24, 2013, 04:54:38 AM
$Add(<Wish>, 1)

 8)
Title: Re: added scripting functions
Post by: redwing on February 24, 2013, 05:17:17 AM
+1

BTW $Add(<$Mul>,<$Div>) too  :)
Title: Re: added scripting functions
Post by: boroda on February 24, 2013, 05:17:36 AM
paq, perfectly!
Title: Re: added scripting functions
Post by: Zak on February 24, 2013, 07:40:55 AM
I'm curious what you would use these for.
Title: Re: added scripting functions
Post by: Gary Young on February 27, 2013, 11:11:08 PM
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
Title: Basic Numerical Operations in Virtual Tags
Post by: Pingaware on January 22, 2015, 04:26:27 PM
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.
Title: Re: Basic Numerical Operations in Virtual Tags
Post by: psychoadept on January 22, 2015, 04:36:24 PM
+1
Title: Re: Basic Numerical Operations in Virtual Tags
Post by: vzell on January 23, 2015, 10:14:27 AM
+1
Title: Re: Basic Numerical Operations in Virtual Tags
Post by: Bee-liever on January 23, 2015, 09:32:21 PM
+1 from me and the other +1's from my wish for the same thing (http://getmusicbee.com/forum/index.php?topic=9008.0 (http://getmusicbee.com/forum/index.php?topic=9008.0))

NB. Maybe a kind and helpful moderator could merge these 2 threads into 1?  Please.
Title: Re: Basic Numerical Operations in Virtual Tags
Post by: Pingaware on January 23, 2015, 11:59:19 PM
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!
Title: Re: Basic Numerical Operations in Virtual Tags
Post by: Bee-liever on January 24, 2015, 12:37:26 AM
No worries Pingaware.
Took me a while to find it - and I posted that thread  :D
Title: Re: Basic Numerical Operations in Virtual Tags
Post by: Pingaware on January 25, 2016, 09:02:30 PM
Apologies for the bump, but now seems the right time to bring it up again. (Inspired by redwing's wishlist bumps :P)
Title: Re: added scripting functions
Post by: MeeMeeMee on January 25, 2016, 09:46:30 PM
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:

Maybe it's too specific or complicated for a function.
Title: Re: added scripting functions
Post by: theta_wave on January 27, 2016, 07:41:27 PM
+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.
Title: Mathematical operators for virtual tags
Post by: Ashgardt on May 23, 2016, 09:06:13 PM
Allowing mathematical operators for the formulas of virtual tags would allow creating some pretty handy tags.
I would like to have a Play count / Skip count ratio for my songs, but offcourse the possibilities are endless.
Although I do not know how much effort it would cost to implement this, it seems like an easy feature to add.
Title: Re: Mathematical operators for virtual tags
Post by: psychoadept on May 23, 2016, 11:43:53 PM
+1
Title: Re: Mathematical operators for virtual tags
Post by: Pingaware on May 24, 2016, 12:15:02 PM
+1 from me and about eight other +1s from these other related threads (here (http://getmusicbee.com/forum/index.php?topic=9008.0) and here (http://getmusicbee.com/forum/index.php?topic=14885.0)).
Title: Re: Basic Numerical Operations in Virtual Tags
Post by: Ashgardt on May 24, 2016, 01:10:58 PM
+1
Title: Re: added scripting functions
Post by: boroda on May 24, 2016, 03:46:18 PM
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.
+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.
virtual tags can only work with tags of a single track.
Title: Re: Basic Numerical Operations in Virtual Tags
Post by: boroda on May 24, 2016, 03:49:47 PM
+1
Title: Re: Mathematical operators for virtual tags
Post by: muchoperdo on December 19, 2017, 08:19:52 AM
Why is this still not a thing...?? :(  :-\  :'(

bump!!

I also want to perform arithmetic operations on tags.

PS
Is there a way to get the 'number of days' using the 'last played' date? for eg. 212 days?
Title: Re: Mathematical operators for virtual tags
Post by: Freddy Barker on December 19, 2017, 12:39:15 PM
Is there a way to get the 'number of days' using the 'last played' date? for eg. 212 days?
+1
That would be very useful  :D
Title: Re: Mathematical operators for virtual tags
Post by: boroda on December 19, 2017, 01:51:03 PM
i think i'll add 4 arithmetic operations to tag tools plugin.
Title: Re: added scripting functions
Post by: northernlights on December 22, 2017, 12:17:46 PM
+1
Title: Re: Mathematical operators for virtual tags
Post by: alec.tron on December 22, 2017, 08:14:26 PM
+1
Title: Re: Mathematical operators for virtual tags
Post by: Bee-liever on January 04, 2018, 07:26:09 AM
i think i'll add 4 arithmetic operations to tag tools plugin.
+1
that would be excellent!
Title: Re: Mathematical operators for virtual tags
Post by: vzell on January 04, 2018, 09:15:15 AM
+1
Title: Re: Mathematical operators for virtual tags
Post by: qwallath on January 05, 2018, 11:59:28 AM
Super impressed new user, but yes: +1  :D

Alternatively, is there a way to export all library metadata to CSV?
I'd like to calculate, f.ex. avarage track rating per artist.
Title: Re: Mathematical operators for virtual tags
Post by: mathi159 on January 14, 2018, 10:37:17 PM
Would love an option to do this as well, but won't you have to rewrite the entire file everytime you play/skip a song? Wouldn't a better option be to specify where musicbee stores this data and synchronise that across devices?
Title: Re: Mathematical operators for virtual tags
Post by: phred on January 15, 2018, 03:06:29 AM
Alternatively, is there a way to export all library metadata to CSV?
I'd like to calculate, f.ex. avarage track rating per artist.
A number of ways including the Advanced Tagging and Reporting Tool Plugin and MB's 'send to > clipboard' feature. Search the forum as this has been discussed many times.
Title: Re: Mathematical operators for virtual tags
Post by: boroda on January 15, 2018, 07:07:26 PM
its done:

https://getmusicbee.com/forum/index.php?topic=3833.100000
Title: Re: Mathematical operators for virtual tags
Post by: MC_K3NNA on February 18, 2021, 01:48:17 PM
+1
Title: Re: Basic Numerical Operations in Virtual Tags
Post by: psychoadept on February 18, 2021, 02:40:36 PM
Does everybody know there are math functions in the Additional Tagging & Reporting Tools plugin?