HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: Foobar3030 on 2019-02-09 18:07:53

Title: Default UI: Hiding title text in custom grouping?
Post by: Foobar3030 on 2019-02-09 18:07:53
Suppose my grouping scheme is simply %artist%. This properly draws a horizontal line between tracks which are by different artists, but it also shows their common artist in the group title:

Artist 1 --------------------------------
Track 1
Track 2
Artist 2 --------------------------------
Track 1
Track 2

Is it possible to hide the grouping scheme's text, such that the line is introduced according to the %ALBUM% field without displaying the contents of the album field? Using the earlier example, it would ideally look like this:

--------------------------------
Track 1
Track 2
--------------------------------
Track 1
Track 2


I don't think there's an inbuilt way of turning text on/off within Default UI, but perhaps someone smarter than me has a title formatting trick up their sleeve...!
Title: Re: Default UI: Hiding title text in custom grouping?
Post by: j7n on 2019-02-09 18:27:05
You can come close by turning the grouping text into a series of invisible characters. The characters I found as usable (depending on the font) still have some width, so you will see some whitespace before the line. The longer the whitespace you accept, the less chance for two groupings to clash and merge.

Replace everything in $crc32() with whatever you want to group by.

Code: [Select]
$puts(temp,$crc32([%releaseflags%][%releasedate%][%releasetype%][%label%][%catalognumber%][%media%][%matrix%][%__codec%]))$replace($select($add($mod($get(temp),9),1),00,01,02,10,11,12,20,21,22)$select($add($mod($div($get(temp),9),9),1),00,01,02,10,11,12,20,21,22),0,$char(8201),1,$char(8202),2,$char(8198))
Title: Re: Default UI: Hiding title text in custom grouping?
Post by: Foobar3030 on 2019-02-09 18:32:30
You can come close by turning the grouping text into a series of invisible characters. The characters I found as usable (depending on the font) still have some width, so you will see some whitespace before the line. The longer the whitespace you accept, the less chance for two groupings to clash and merge.

Replace everything in $crc32() with whatever you want to group by.

Code: [Select]
$puts(temp,$crc32([%releaseflags%][%releasedate%][%releasetype%][%label%][%catalognumber%][%media%][%matrix%][%__codec%]))$replace($select($add($mod($get(temp),9),1),00,01,02,10,11,12,20,21,22)$select($add($mod($div($get(temp),9),9),1),00,01,02,10,11,12,20,21,22),0,$char(8201),1,$char(8202),2,$char(8198))

Ingenious! Thank you very much!
Title: Re: Default UI: Hiding title text in custom grouping?
Post by: anamorphic on 2019-02-10 00:12:15
Nice. That is some mastermind level stuff, j7n. 8)