On Thu, 9 May 2019 at 14:18, David Kastrup <d...@gnu.org> wrote:

> Gianmaria Lari <gianmarial...@gmail.com> writes:
>
> >>
> >>
> >> \version "2.21.0"
> >> <<
> >>   \new Staff   {
> >>     c'4 d' e' f'
> >>     \repeat volta 2 {c' d' e' f' | g' a' b' c''}
> >>   }
> >>   \new ChordNames \with { chordChanges = ##t } {
> >>     g1 \once \unset chordChanges \repeat volta 2 {g1|1}
> >>   }
> >> >>
> >>
> >
> > Thank you David, this is what I wanted!
> >
> > In the meantime I also found another working solution, but it's not
> neat. I
> > post it here anyway:
> >
> > \version "2.21.0"
> > <<
> >   \new Staff   {
> >     c'4 d' e' f'
> >     \repeat volta 2 {c' d' e' f' | g' a' b' c''}
> >   }
> >   \new ChordNames \with { chordChanges = ##t } {
> >     g1 \once \unset chordChanges \repeat volta 2 {g1|1}
> >   }
> >>>
>
> That does not look significantly worse.  Mostly because it is literally
> the same.
>

ahem.... apologies, I pasted your solution instead of this one:

\version "2.21.0"
<<
  \new Staff   {
    c'4 d' e' f'
    \repeat volta 2 {c' d' e' f' | g' a' b' c''}
  }
  \new ChordNames {

    g1 \repeat volta 2 {g1|\set chordChanges = ##t 1}
  }
>>

g.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to