lilypond-user
[Top][All Lists]
Advanced

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

Re: Bass and chords


From: Eluze
Subject: Re: Bass and chords
Date: Wed, 07 Nov 2012 00:55:54 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2


Am 06.11.2012 23:33, schrieb Thomas Morley:
More automated:

\version "2.16.0"

chordNamesWithRestsLayout =
\with {
        noChordSymbol = #(make-simple-markup "")
        \consists "Rest_engraver"
        \consists "Multi_measure_rest_engraver"
        \override Rest #'font-size = #-4
        \override MultiMeasureRest #'font-size = #-4
        % No idea, why r1 needs to be special-cased:
        \override Rest #'after-line-breaking =
          #(lambda (grob)
            (let* ((dur-log (ly:grob-property grob 'duration-log))
                   (staff-pos (if (= dur-log 0) 0 2)))
            (ly:grob-set-property! grob 'staff-position staff-pos)))
        \override MultiMeasureRest #'staff-position = #2

}

  <<
  \new ChordNames \with { \chordNamesWithRestsLayout }
  \chordmode { c1 R1 d e }
  \new Staff { c1 R1 d e }
  >>

\score {
  <<
    \new ChordNames
    \chordmode { c1 R1 d e }
    \new Staff { c1 R1 d e }
  >>
  \layout {
          \context {
          	  \ChordNames
          	  \chordNamesWithRestsLayout
          }
  }
}


thanks Harm - I think that's a superb solution with a fantastical short code - something for the LSR!?

' if you want to replace the "N.C." symbol in a \chordname context by the latent rest you can use … … … …  '

Eluze

reply via email to

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