getmusicbee.com

General => MusicBee Wishlist => Topic started by: RavenWorks on June 05, 2019, 01:38:02 AM

Title: "First letter of Artist name" field for device media storage
Post by: RavenWorks on June 05, 2019, 01:38:02 AM
For devices with slow scrolling, it would be handy to be able to assign the music file storage path to be something like

Code
Music\<Album Artist Initial>\<Album Artist>\<Album>\<Disc-Track#> - (...etc)

so that the Music folder would contain one folder for each letter of the alphabet, and the B folder would hold The Beatles, The BeeGees, etc
Title: Re: "First letter of Artist name" field for device media storage
Post by: Zak on June 05, 2019, 02:05:40 AM
You could do that with a virtual tag like this:
$Group(<Album Artist>,1)

Then use that tag in your naming template.

-edit-
Actually, that's over complicating it. You could also just use that formula in your template:
Music\$Group(<Album Artist>,1)\<Album Artist>\<Album>\<Disc-Track#> - (...etc)
Title: Re: "First letter of Artist name" field for device media storage
Post by: RavenWorks on June 05, 2019, 02:11:32 AM
Fantastic, thank you!
Title: Re: "First letter of Artist name" field for device media storage
Post by: RavenWorks on June 05, 2019, 02:18:51 AM
Actually, where can I learn more about this feature? Are there others like it? (I'm tempted to make a different request about paths now, but I feel like I should fully understand how this feature works first...)
Title: Re: "First letter of Artist name" field for device media storage
Post by: RavenWorks on June 05, 2019, 02:29:04 AM
Never mind, I found them! https://musicbee.fandom.com/wiki/Functions
Title: Re: "First letter of Artist name" field for device media storage
Post by: frankz on June 05, 2019, 03:02:03 AM
I'm confused on this. Is $Group the correct function or is $Left the correct function or with both work equally well?
Title: Re: "First letter of Artist name" field for device media storage
Post by: Zak on June 05, 2019, 04:16:15 AM
If you only want the first letter, $Group(<Artist>,1) and $Left(<Artist>,1) will do the same thing.

Where Group is a little more flexible is that the second parameter is how many characters will appear in each group.
So you can tweak it depending on the how many groups you want to end up with.

1 = A, B, C, D, E, F ...
2 = AB, CD, EF ...
3 = ABC, DEF ...

Numbers are always grouped as "0-9".

If it still isn't clear:
* Select a few different files from different artists
* Right-click
* Select Send To > Folder (Copy) > Copy Files to Organised Folder
* Add the $Group function to the naming template and adjust the second parameter to see how it affects the new file name in the preview list.
Title: Re: "First letter of Artist name" field for device media storage
Post by: Simpuhl on August 11, 2023, 07:27:08 PM
If you only want the first letter, $Group(<Artist>,1) and $Left(<Artist>,1) will do the same thing.

Where Group is a little more flexible is that the second parameter is how many characters will appear in each group.
So you can tweak it depending on the how many groups you want to end up with.

1 = A, B, C, D, E, F ...
2 = AB, CD, EF ...
3 = ABC, DEF ...

Numbers are always grouped as "0-9".

If it still isn't clear:
* Select a few different files from different artists
* Right-click
* Select Send To > Folder (Copy) > Copy Files to Organised Folder
* Add the $Group function to the naming template and adjust the second parameter to see how it affects the new file name in the preview list.


How do I make numbers NOT group by 1-9
Title: Re: "First letter of Artist name" field for device media storage
Post by: Zak on August 14, 2023, 03:06:18 AM
What do you want them to appear as?

Try wrapping the whole naming template in a Replace function to swap the '0-9' with your preference.