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: http://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?
\omit
function =). Eliminating the stems I figured the whitespace is generated by the\markup
texts I use to label the note heads. Even when I override theTextScript
position using#'extra-offset
, the text leaves behind the whitespace it should have occupied without the override. (lilybin.com/yx9viw/3)