Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Single Column Playlist: Sort/Group Strings (Read 4591 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Single Column Playlist: Sort/Group Strings

Hello!
I'm a bit of a noob with foobar, and I need some help with the sort strings. What kind of sort string (For SCPL) would I use to group into albums (with ordered track list), and then group all tracks that don't have an album together?

Cheers.

Single Column Playlist: Sort/Group Strings

Reply #1
- Are you using the new SCPL Sort/Group Criteria presets or the older approach using regular foobar sort strings?

- What do you use to determine if "tracks .. have an album". From the sound of your post it sounds like you use %album% but do you really strip %album% tags from singles? Do you maybe use %tracknumber% instead?

- Do you use %discnumber% for multidisc albums? Do you want different disks grouped separately?

Single Column Playlist: Sort/Group Strings

Reply #2
Yep, i'm using "group by". Tracks that don't have an album have an empty album tag, and multi disc albums just have the disc number stuck onto the end of the album tag (So nothing needs to be done for these).

Single Column Playlist: Sort/Group Strings

Reply #3
Try something like this for an "Album" criteria primary sort string:
$if2(%album%,!single)

And for a "Track Number" criteria:
[%tracknumber%]

Then create a preset. (0) Sort & Group by Album, (1) Sort by Track Number
If you want additional sorting for the singles you'll want to add %artist% and/or %title% but that should get ou started.

Single Column Playlist: Sort/Group Strings

Reply #4
Try something like this for an "Album" criteria primary sort string:
$if2(%album%,!single)

And for a "Track Number" criteria:
[%tracknumber%]

Then create a preset. (0) Sort & Group by Album, (1) Sort by Track Number
If you want additional sorting for the singles you'll want to add %artist% and/or %title% but that should get ou started.

Thanks, but you've confused me now

Single Column Playlist: Sort/Group Strings

Reply #5
Creating a sort string with the new Group By presets is a bit more complicated than the old system.

File> Preferences> Panels UI> Sort/Group
You need to create a "Sorting and grouping criteria" for each part of your sort string. For what you described I would suggest adding/modifying the following:
  • Album
  • Track Number
  • Artist
  • Title
Once you have defined the criteria you can create the sort string from SCPL. Right click your playlist and select
Sort / Group By> Edit from the popup menu. In the "Sort/Group By" dialog that appears uncheck all the boxes and then:
  • Left-Click "Album"
  • Right-Click "Track Number"
  • Right-Click "Artist"
  • Right-Click "Title"
Save the preset to whatever name you like and then you should be able to use it from the SCPL right click menu.

Single Column Playlist: Sort/Group Strings

Reply #6
Cheers, seems to be what I want now!

 

Single Column Playlist: Sort/Group Strings

Reply #7
How can I get the preset to stick?
When i restart foobar I have to click on my preset again to get it to apply.