Classical grouping in foobar2000 with foo_simplaylist

I think I may have found a reasonable solution to grouping classical music with foobar2000. Previous attempts have revolved around adding additional tags but with foo_simplaylist I was able to come up with something that works well enough with standard title tags.

First, some images of how it looks in the playlist:

Vivaldi album that appears nicely
Vivaldi album that appears nicely
Handel album nicely grouped too.
Handel album nicely grouped too.
Double CD set of Chopin.
Double CD set of Chopin.
Not too bad with a "random" selection of pieces.
Not too bad with a “random” selection of pieces.
Tracks that aren't grouped by movement are sorted under '(Single Pieces').
Tracks that aren’t grouped by movement are sorted under ‘(Single Pieces’).

Here’s the preference panels for foo_simplaylist to accomplish this:

SimPlaylist group panel
SimPlaylist group panel

The key is mostly in the second subgroup which uses the following title formatting:

$ifgreater($strstr(%title%,:),0,$left(%title%,$sub($strstr(%title%,:),1)),'('Single pieces')')

Whenever there is a colon in the %title%, this groups a new group header for that concerto, otherwise it adds the track to the group (Single pieces). I should probably figure out a better label, but this works well enough for now.

What you can’t see is the Sorting pattern:

%ALBUM ARTIST% - %DATE% - %__CODEC% - %ALBUM% - %DISCNUMBER% - $ifgreater($strstr(%title%,:),0,$left(%title%,$sub($strstr(%title%,:),1)),ZZZZZZZZZZZZZ- %TRACK NUMBER%)

Pretty much a duplicate of the group, but the Zs will sort tracks that aren’t labeled as movements to the end of the list.

SimPlaylist custom column
SimPlaylist custom column

The title formatting for the Piece column is:

$right(%title%,$sub($len(%title%),$strstr(%title%,:)))

Which cuts the concerto name at the first colon (if there is one), then displays the rest. If there is no colon, it will just display the %title%.

This doesn’t work very well for some compilations, they get kind of ugly. For well-arranged albums, I like the grouping by works and movements.

This compilation album of Beethoven looks quite busy