bell notificationshomepageloginNewPostedit profiledmBox

Hoots : Is there a single command for vertical padding in LilyPond markup? The documentation for markup alignment lists two essentially different padding commands: pad-around or pad-markup, which adds the same amount of space - freshhoot.com

10% popularity   0 Reactions

Is there a single command for vertical padding in LilyPond markup?
The documentation for markup alignment lists two essentially different padding commands: pad-around or pad-markup, which adds the same amount of space all around the element, and pad-x, which adds left and right padding while leaving the top and bottom unpadded.

Is there any one command that only adds vertical padding? Or do I need to do something like

pad-around #0 .5 pad-x #-0.5 { STUFF }

to achieve that?

ETA: My overarching goal is to correctly white out the parts of bar lines that would otherwise intersect with expressive marks, like so:

The full code can be found here at LilyBin.


Load Full (2)

Login to follow hoots

2 Comments

Sorted by latest first Latest Oldest Best

10% popularity   0 Reactions

This is a late answer, but are you familiar with the /whiteout command? It's a pre-defined tool that explicitly handles your "overarching" goal of barlines interfering with expressive marks. Something like d^markup { italic whiteout { sostenuto } } will do the trick:

Full code here at LilyBin.


10% popularity   0 Reactions

You should be able to use vspace, e.g.

markup{
vspace #10
stuff
vspace #10
}

as per this question


Back to top Use Dark theme