lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compressEmptyMeasures and chordmode


From: Mark Probert
Subject: compressEmptyMeasures and chordmode
Date: Thu, 17 Jun 2021 10:41:23 +1000

Hi, all.

I am writing a leadsheet that has an intro which the lead instrument 
doesn't play, so rests are needed. I'd like to compress the rests, so 
\compressEmptyMeasures works well. However, when I add \chordmode, it 
appears to override the empty measure compression, which does make 
sense as the bars aren't empty any more. 

My question is how can I place a chord over those first compressed bars 
without expansion? I'd like to have compression and chords :-)

Thanks

 ..mark.

(In the snippet you can see the difference if you comment out the "\new 
ChordNames" line.)

---
\version "2.22"

tune = \relative c'' {
  \clef treble
  \compressEmptyMeasures { R1*4 }
}

harmony = \chordmode {
  g1:m7 s1 s1 s1
}

\score {
  <<
    \new ChordNames \harmony % comment out this line
    \new Staff \tune
  >>
}
---



reply via email to

[Prev in Thread] Current Thread [Next in Thread]