Easily enter music expressions in markup (obsolete in 2.23)
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:
- For creating in-line notes (e.g., beamed notes, tuplets, etc.).
- For custom metronome marks.
- When you need something more than a single note.
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.
Note: A \rhythm markup command is available since version 2.23.11, which makes this code obsolete.