Hi Elaine, Thanks for your answer. Your solution actually puts space between the chord names and the staff below, but I want the extra space between the chord names and the headers above them. I couldn't find a parameter in the VerticalAxisGroup that does this. Xavier's solution of increasing the padding in a \paper block does work, but I only want it in one score on the page, not both.
Can anyone help me with how to achieve that? Many thanks, Brent. On Sat, 17 Jul 2021 at 01:28, Flaming Hakama by Elaine < [email protected]> wrote: > ---------- Forwarded message ---------- >> From: Xavier Scheuer <[email protected]> >> To: Brent Annable <[email protected]> >> Cc: lilypond-user <[email protected]> >> Bcc: >> Date: Fri, 16 Jul 2021 08:52:07 +0200 >> Subject: Re: Extra padding between ChordNames and custom headers >> On Fri, 16 Jul 2021 at 06:19, Brent Annable <[email protected]> >> wrote: >> > >> > Hi everyone, >> > >> > I'm producing some music that uses some custom headers as well as chord >> names above the staff. Sometimes the chord names are a little too close to >> the headers for my liking, and I'd like a way to add more padding above the >> chord names when necessary. >> > >> > Because of the custom headers, it seems like I can't just add a \markup >> \vspace before the score (also this score is the second on the page, so >> that just adds more space between the two scores, not after the headers.) >> > >> > I've fiddled around with the ChordName VerticalAxisGroup, but there >> doesn't seem to be a property I can tweak that will create more space >> between them and the headers. I've included a little example (somewhat >> lengthy - my apologies), does anyone have any suggestions for how to create >> more distance between the headers and the chord names? >> >> Hello, >> >> The fact that you use custom header fields does not change the way to add >> spacing between header and score. >> >> Increase markup-system-spacing.padding, which is the variable controlling >> the distance between a (title or top-level) markup and the system that >> follows it, as documented in NR 4.1.4 Flexible vertical spacing >> >> https://lilypond.org/doc/v2.22/Documentation/notation/flexible-vertical-spacing-paper-variables >> >> \paper { >> markup-system-spacing.padding = #5 >> } >> >> Per default the spacing between the title and the first system is mainly >> due to markup-system-spacing.basic-distance but as the top element of your >> system is a ChordNames context (i.e. non-staff), as explained in the same >> section of the NR, you cannot really count on basic-distance and would >> better increase padding. >> >> Cheers, >> Xavier >> >> -- >> Xavier Scheuer <[email protected]> >> >> >> >> >> ---------- Forwarded message ---------- >> From: Brent Annable <[email protected]> >> To: Xavier Scheuer <[email protected]> >> Cc: lilypond-user <[email protected]> >> Bcc: >> Date: Fri, 16 Jul 2021 17:55:14 +1000 >> Subject: Re: Extra padding between ChordNames and custom headers >> Xavier, >> >> Awesome thank you. What would I do if I wanted the extra padding on only >> one score on the page? In my music, each page will have two scores on it, >> but only the second one has chords requiring the extra distance. I tried >> adding another \paper variable before the second score, but lilypond freaks >> out, and when I separate the scores with \bookpart, they are placed on >> separate pages. Is there a way to get the extra padding only on one score, >> with both being on the same page? >> >> Brent. >> > > > Here's an MFE. > > Please, no more 'helpful' refs to the docs. > No one will ever figure out where to put the property by RTFM. > That is just a recipe for frustration and intimidation. > > Even though the override appears semantically to be related to the Staff, > the override actually goes in the ChordNames. > > > \version "2.19.81" > > myChords = \chordmode { > c1 | d1:m9 | g:13 | g:m7 | > } > > \score { > << > \new ChordNames { > \override > VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = 3 > \myChords > } > \new Staff { c''1 d''1 e''1 f'' } > >> > } > \score { > << > \new ChordNames { > \myChords > } > \new Staff { c''1 d''1 e''1 f'' } > >> > } > > > HTH, > > Elaine Alt > 415 . 341 .4954 "*Confusion is > highly underrated*" > [email protected] > Producer ~ Composer ~ Instrumentalist ~ Educator > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > >
