lilypond-user
[Top][All Lists]
Advanced

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

generating simple leadsheet with chords and empty staff


From: Rob Torop
Subject: generating simple leadsheet with chords and empty staff
Date: Sun, 1 Mar 2020 12:17:01 -0500

I want to generate a lead sheet in which
Below is my current attempt.  My questions are
  • Is there a way to avoid needing to put the repeating 12 bars of silent rests in the melody - clearly it's not a good way to do it
  • Can this be done more concisely?
\version "2.18.2"

chordmusic = \relative {
    \chordmode {
        \repeat percent 4 { f1:7 }                            \break
        \repeat percent 2 { bes1:7} \repeat percent 2 { f1:7} \break
        \repeat percent 2 { c1:7}   \repeat percent 2 { f1:7}
    }
}

melody = { \repeat unfold 12 {s1} }
%melody =  {}

\score {
  <<
    \new ChordNames { \chordmusic }
    \new Staff      { \melody     }
  >>

  \layout {
    indent = #0
    \context {
        \ChordNames
        \consists "Percent_repeat_engraver"
        \override PercentRepeat.extra-offset = #'(0 . 1)            
         
    }  
  }
}


reply via email to

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