humlib icon indicating copy to clipboard operation
humlib copied to clipboard

[fb] Control stack placeholders

Open WolfgangDrescher opened this issue 2 years ago • 3 comments

It would be nice if there was an option to control the position of the numbers with stack placeholders.

http://verovio.humdrum.org/?file=bach-wtc-fugues/wtc2f24.krn

fb -c -a -3

Bildschirm­foto 2023-01-16 um 11 24 08

With this option the numbers in measure 97 should be vertical aligned to the bottom. Basically each track should get its own stack placeholder.

Of course you could simply use fb -c -a -3 -i instead:

Bildschirm­foto 2023-01-16 um 11 24 48

When introducing stack placeholders numbers could also pushed to the bottom when using --above:

fb -c -a -3 -r --above

Bildschirm­foto 2023-01-16 um 11 29 26

But this needs to work a bit differently since when using -n or -r the max number of displayed numbers per chord needs to get calculated. Without these option the max number of tracks can be used. Unfortunately we cannot do this per line as the kern encoding does not know about the dynamic line width when rendered with verovio. So we can only do this per file (or per measure).

WolfgangDrescher avatar Jan 16 '23 10:01 WolfgangDrescher

It's actually not that easy as tracks can have chords:

http://verovio.humdrum.org/?file=beethoven/quartets/quartet02-2.krn

Bildschirm­foto 2023-01-16 um 11 44 46

WolfgangDrescher avatar Jan 16 '23 10:01 WolfgangDrescher

What are the fb options used in the last example?

craigsapp avatar Jan 16 '23 21:01 craigsapp

fb -c -a. Already fixed the missing 8 (1 for non compound: fb -a) in the viola.

WolfgangDrescher avatar Jan 16 '23 22:01 WolfgangDrescher