Re: Bug report concerning \compressEmptyMeasures and also \compressMMRests

William Rehwinkel via bug-lilypond <[email protected]> Sun, 9 Mar 2025 18:15:26 -0400
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <[email protected]>
Dear John,

If you change

\repeat unfold 4 { ""1 }

to

""1*4

like in the attached example, the measure compression appears to work.

Does this fix the problem?
-William

On 3/9/25 17:47, John Kopplin wrote:
> 

-- 
William Rehwinkel (any pronouns)
Juilliard School '26 - Oberlin Conservatory '24
[email protected] - https://williamrehwinkel.net
PGP Public Key: https://ftp.williamrehwinkel.net/pubkey.txt
Bug Demo copy.ly (text/plain, 1015 B)
% This LilyPond input file demonstrates a bug involving the
% \compressEmptyMeasures and \compressMMRests commands.
% The song has lyrics that don't start immediately and a
% bass guitar part that doesn't start immediately.  If the
% lyrics are removed the \compressEmptyMeasures and
% \compressMMRests commands then work.


\version "2.24.1"


bassgtrnotes = \fixed c, {
  \compressEmptyMeasures    % I have tried both of these statements
  %\compressMMRests 
  {
  \override MultiMeasureRest.expand-limit = #2
    R1*4
    b,4 b,4 b,4 b,4 |
    
  }  % end of \compressMMRests
  
}


words   = \lyricmode {
   ""1*4    % ""1 represents a whole measure of silence
  uno4 dos4 tres4 oye4

}


\score {

  <<

    \new Staff = "singer" <<
      \new Voice = "vocal" {
        \clef "bass_8"
        \bassgtrnotes
      }
     \new Lyrics { \words }
% If you comment out the above "\new Lyrics..." statement LilyPond works correctly!

    >> 

  >>

  \layout { }

}
OpenPGP_signature.asc (application/pgp-signature, 236 B)
-----BEGIN PGP SIGNATURE-----

wnsEABYIACMWIQQWkoBfp7VoBPFXbmZQNhfnjKw2DgUCZ84S/gUDAAAAAAAKCRBQNhfnjKw2Dq+m
AP48knOPqtZi4PBxNWJt+0qVG6az02SJNtKFB1jh4PtaiwEA3AXhuJO5FcH9HUpqlE9FYB4+GX4a
mdYHCe6SkrL2oAs=
=d6wt
-----END PGP SIGNATURE-----