Suggestion to Documentation for Multi Measure Rests

Nicholas Hansen <[email protected]> Tue, 21 Jul 2026 19:44:30 -0700
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <CAAR8HUNV1SUGj4mCo57akqVCBw2vHNffRbuGHDU7pLKmNKaD5g@mail.gmail.com>
Not a bug, but I think this would be worth mentioning in the documentation
somewhere when it comes to multi measure rests. If you have a Dynamics
context attached to a staff, and you're trying to create a multi measure
rest, the Dynamics context needs to be noted as a multi measure rest, just
like the music staff. If you don't, as in the following example, the
measures will not compress.
\score {
  \compressMMRests
  <<
    \new Staff {R1*3}
    \new Dynamics {s1 s s}
  >>
}
Maybe I'm dumb, but I spent over an hour trying to figure out why I had one
section of rests that wouldn't compress no matter what I tried.
Thank you,
Nick