Sometimes it is necessary to add a simple snippet of music into a markup function. Constructing the different notation elements manually can be painful, because of lots of trial-and-error positioning. The \ezscore
markup command takes the pain out of manually constructing these music expressions in \markup
mode.
When this command is useful:
Basically, \ezscore
is a wrapper for the \score
markup command that puts everything on a RhythmicStaff
, but automatically removes the staff lines, clefs, and time signatures. Why use it? Because it utilizes LilyPond's built-in layout/spacing algorithms, so you can add any other overrides you want, which makes it possible to do things like compressing/expanding the horizontal spacing of notes with \newSpacingSection
.