Sorry - I forgot to attach my example.

Ralph

On Sun, Sep 5, 2021 at 10:50 AM Ralph Palmer <palmer.r.vio...@gmail.com>
wrote:

> On Sun, Sep 5, 2021 at 9:01 AM Lukas-Fabian Moser <l...@gmx.de> wrote:
>
>> Hi Ralph,
>> Am 05.09.21 um 17:45 schrieb Ralph Palmer:
>>
>> I would like to increase the space between the chord names and the
>> highest notes or top staff lines. I've looked in the LilyPond Snippets and
>> in the Snippets Repository, and can't find anything that helps. I'm
>> guessing it's a setting in spacing or padding, but I can't figure out which
>> setting.
>>
>> If the distance should be measured from the chord names to the highest
>> notes, as you describe, then .padding is the property you want to use:
>>
>> \score {
>>   <<
>>     \new ChordNames \with {
>>       \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding =
>> 2
>>     } \Chords
>>     \new Staff \Tune
>>   >>
>> }
>>
>> Lukas
>>
>
> Uhh. . . This is great except for the alternative endings. Without going
> too crazy, is there a way to get the chord names above the alternative
> ending spanners?
>
> Ralph
>
>
>

-- 
Ralph Palmer
Seattle
USA
(he, him, his)
palmer.r.vio...@gmail.com
\version "2.23.2"
\language "english"

\paper {
  #(set-paper-size "letter")
  top-margin = 0.5\in
  score-markup-spacing = #'((padding . 2))
  page-count = #1
}

#(set-global-staff-size 20.0)


Tune = 
\relative c'' {
  \clef treble
  \key c \major
  \time 2/2

  \repeat volta 2 {
    a4 b c d |
    e d c b  |
    b4 c d e |
    f g a b |
    c b a g |
    f e d c |
    \break
    d4 d d d |
    d d d d |
    d d d d |
    d d d d |
  }
  \alternative {
    { d d d d | }
    { d d d d | }
  }
}

Chords = \chordmode {
  a1 b c b a b
  a1 b c b a b
}



\score {
  <<
    \new ChordNames \with {
      \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = 2
    } \Chords
    \new Staff \Tune
  >>
}


Attachment: ChordStaffExampleTwo.pdf
Description: Adobe PDF document

Reply via email to