> > > > > ---------- Forwarded message ---------- > From: Flaming Hakama by Elaine <ela...@flaminghakama.com> > To: Lilypond-User Mailing List <lilypond-user@gnu.org> > Cc: > Bcc: > Date: Wed, 26 Apr 2023 14:19:36 -0700 > Subject: rests in chord symbols with volta endings > Hi, > > I was trying to use https://lsr.di.unimi.it/LSR/Snippet?id=529 > to add some rests to chord symbols > > After using convert-ly it worked as is. > > However, when using this in the context of repeat voltas, > chords in the endings appear above the ending lines, > rather than below as normal. > > Does anyone have any suggestions for how to get the chord symbols below > the ending lines? > > > \version "2.22.0" > > \layout { > \context { > \type "Engraver_group" > \name ChordNamesRests > \description "Typesets chord names." > > \consists "Output_property_engraver" > \consists "Separating_line_group_engraver" > \consists Chord_name_engraver \consists Current_chord_text_engraver > > \consists "Rest_engraver" > > noChordSymbol = ##f > > \override VerticalAxisGroup.staff-staff-spacing = #'((padding . 1)) > \override VerticalAxisGroup.remove-first = ##t > \override VerticalAxisGroup.remove-empty = ##t > } > > \context { > \Score > \accepts ChordNamesRests > } > } > > music = { > c4 d e d > f4 r g r > c,1 > } > > structure = { > \repeat volta 2 { > s1 > } > \alternative { > { s1 } > { s1 } > } > } > \score { > << > \new ChordNamesRests { > \chordmode { > \override Rest.Y-offset = #1 > \music > } > } > \relative c' << > \structure > \music > >> > >> > } > > > > Thanks, > > Elaine Alt > 415 . 341 .4954 "*Confusion is > highly underrated*" > ela...@flaminghakama.com > Producer ~ Composer ~ Instrumentalist ~ Educator > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > > ---------- Forwarded message ---------- > From: Jean Abou Samra <j...@abou-samra.fr> > To: Flaming Hakama by Elaine <ela...@flaminghakama.com>, Lilypond-User > Mailing List <lilypond-user@gnu.org> > Cc: > Bcc: > Date: Wed, 26 Apr 2023 23:43:37 +0200 > Subject: Re: rests in chord symbols with volta endings > > Le mercredi 26 avril 2023 à 14:19 -0700, Flaming Hakama by Elaine a écrit : > > Hi, > > I was trying to use https://lsr.di.unimi.it/LSR/Snippet?id=529 to add > some rests to chord symbols > > After using convert-ly it worked as is. > > However, when using this in the context of repeat voltas, > chords in the endings appear above the ending lines, rather than below as > normal. > > Does anyone have any suggestions for how to get the chord symbols below > the ending lines? > > Well, the snippet neither adds Axis_group_engraver to ChordNamesRests, > nor makes it child of some context with Axis_group_engraver like Staff. > As a result, the chord name grobs are at the level of the whole system, > like other system-level grobs such as volta brackets or rehearsal marks. > Actually, they are more “system-level” than those, because grobs like volta > brackets are moved inside the top staff after line breaking. > > I don't understand why the snippet has these VerticalAxisGroup overrides. > They have no effect, since there is no VerticalAxisGroup in the context. > > Try > > \version "2.24.1" > > \layout { > \context { > \type Engraver_group > \name ChordNamesRests > \description "Typesets chord names." > > \consists Output_property_engraver > \consists Separating_line_group_engraver > \consists Chord_name_engraver > \consists Current_chord_text_engraver > \consists Rest_engraver > noChordSymbol = ##f > \consists Axis_group_engraver > \override VerticalAxisGroup.staff-affinity = #DOWN > \override VerticalAxisGroup.remove-first = ##t > \override VerticalAxisGroup.remove-empty = ##t > } > \context { > \Score > \accepts ChordNamesRests > } > } > > music = { > c4 d e d > f4 r g r > c,1 > } > > structure = { > \repeat volta 2 { > s1 > } > \alternative { > { s1 } > { s1 } > } > } > \score { > << > \new ChordNamesRests { > \chordmode { > \override Rest.Y-offset = #1 > \music > } > } > \relative c' << > \structure > \music > >> > >> > } > > Regards, > > Jean > > > > ---------- Forwarded message ---------- > From: Jean Abou Samra <j...@abou-samra.fr> > To: Flaming Hakama by Elaine <ela...@flaminghakama.com>, Lilypond-User > Mailing List <lilypond-user@gnu.org> > Cc: > Bcc: > Date: Wed, 26 Apr 2023 23:47:38 +0200 > Subject: Re: rests in chord symbols with volta endings > > Le mercredi 26 avril 2023 à 23:43 +0200, Jean Abou Samra a écrit : > > structure = { \repeat volta 2 { s1 } \alternative { { s1 } { s1 } } } > > By the way: regarding the above, I invite you to read the thread > > https://lists.gnu.org/archive/html/lilypond-user/2022-11/msg00199.html > >
Thanks for the help. I forgot to mention that am still on 2.22, so I am still using the traditional syntax of \repeat and \alternative It appears that this is actually the MWE, at least for 2.22 all the other lines I removed did not affect either this MWE or my actual real world score. \version "2.22.0" \layout { \context { \type Engraver_group \name ChordNamesRests \consists Chord_name_engraver \consists Rest_engraver noChordSymbol = ##f \consists Axis_group_engraver } \context { \Score \accepts ChordNamesRests } } myMusic = \relative c'' { c4 d e d f4 r g r c,1 } myChords = \chordmode { \override Rest.Y-offset = #1 c4 d e d f4 r g r c,1 } structure = { \repeat volta 2 { s1 } \alternative { { s1 } { s1 } } } \score { << \new ChordNamesRests \transpose c c { \myChords } \new Staff << \structure \myMusic >> >> } Thanks, Elaine Alt 415 . 341 .4954 "*Confusion is highly underrated*" ela...@flaminghakama.com Producer ~ Composer ~ Instrumentalist ~ Educator -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > >