lilypond-user
[Top][All Lists]
Advanced

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

Re: Bass and chords


From: Thomas Morley
Subject: Re: Bass and chords
Date: Wed, 7 Nov 2012 01:25:07 +0100

2012/11/7 Eluze <address@hidden>:
>
> 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
>

Will do, if noone comes up with a better solution or finds a drawback.

Regards,
  Harm



reply via email to

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