[Top][All Lists]
[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
- Bass and chords, Frédéric Fanchamps, 2012/11/05
- Re: Bass and chords, David Kastrup, 2012/11/05
- Re: Bass and chords, Eluze, 2012/11/06
- Re: Bass and chords, Eluze, 2012/11/06
- Re: Bass and chords, Thomas Morley, 2012/11/06
- Re: Bass and chords, Eluze, 2012/11/06
- Re: Bass and chords,
Thomas Morley <=
- Re: Bass and chords, David Kastrup, 2012/11/07
- Re: Bass and chords, Thomas Morley, 2012/11/11
- Re: Bass and chords, David Kastrup, 2012/11/12
- Re: Bass and chords, Thomas Morley, 2012/11/12
- Re: Bass and chords, David Kastrup, 2012/11/12
Re: Bass and chords, Frédéric Fanchamps, 2012/11/06