lilypond-user
[Top][All Lists]
Advanced

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

Re: Move chord name down onto staff?


From: Werner LEMBERG
Subject: Re: Move chord name down onto staff?
Date: Sun, 11 Jul 2021 04:33:25 +0000 (UTC)

>> I'm not sure how to move the chord names down so they are centered
>> on the staff. Essentially I want the changes on an empty stave but
>> I'm unclear on how to do that.  [...]
> 
> Here's one way to do this:
> 
> %%%%
> \version "2.20"
> 
> harmony =  \chordmode { a1:m s1 f1:m7 s1 }
> tune = { s1 s1 s1 s1 }
> 
> chordsOnStaff = \with {
>   % Force the baselines to match.
>   \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
>   #'((basic-distance . 0) (minimum-distance . 0)
>      (padding . -inf.0) (stretchability . 0))
>   % Adjust to one staff space lower.
>   \override ChordName.extra-offset = #'(0 . -1)
> }
> 
> \score {
>   <<
>     \new ChordNames \with \chordsOnStaff \harmony
>     \new Staff      \tune
>   >>
> }
> %%%%

Aaron, this is such a useful snippet IMHO that it deserves to be added
to the LSR in case it isn't there (which I can hardly believe since it
looks like being needed a lot).  So please do that :-)


    Werner



reply via email to

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