bell notificationshomepageloginNewPostedit profiledmBox

Hoots : Vertical score positioning in LilyPond I'm writing a drum sheet template for LilyPond and I'd like to place a drum key box to the left of the header. Here is what I've done so far: LilyBin link for fiddling with my markup: - freshhoot.com

10% popularity   0 Reactions

Vertical score positioning in LilyPond
I'm writing a drum sheet template for LilyPond and I'd like to place a drum key box to the left of the header. Here is what I've done so far:

LilyBin link for fiddling with my markup: lilybin.com/yx9viw/1
The problem I'd like to solve is vertically positioning the score or the DrumStaff inside the box, to remove all the blank space at the top. I figure removing the Stem_engraver would help (and is also desirable, since I only want to show the note heads in the drum key), but it doesn't really work (see line 63 on LilyBin), and while hide-ing the stems does work, it doesn't eliminate the vertical space occupied by them.

So, does anyone know how I can:

Remove (not hide) the stem engraver from the score inside the box (line 60 on LilyBin), and
Vertically position the entire score so it stays at the top of the box, thus eliminating all that whitespace?


Load Full (1)

Login to follow hoots

1 Comments

Sorted by latest first Latest Oldest Best

10% popularity   0 Reactions

Hm, is there any reason why you have the markups with the labels connected to invisible notes on the left and the right? Why not just put it in a line like this: lilybin.com/yx9viw/4 .

What I did is box { line { raise #something left score { ... } raise #something right } }. It works OK it seems. (The #something 's were chosen to make the labels match with the note columns.)

(This is better because you can raise the labels into the right places (this command generally works only for moving a part of markup relative to the rest of the markup).)


Back to top Use Dark theme