On 28 February 2017 at 18:31, David Kastrup <d...@gnu.org> wrote:
>
> Gianmaria Lari <gianmarial...@gmail.com> writes:
>
> >>> I have a fragment that needs to be repeated twice with alternate
ending
> > and
> >>> the second time one octave higher. The following is an example that
would
> >>> be ok...
> > [....]
> >> Let's just cheat.
> >>
> >> \version "2.19.52"
> >>
> >> \score {
> >>   {
> >>     \mark "2nd time 8va"
> >>     \repeat volta 2 {c' d' e' f'}
> >>     \alternative {{a a a a}{\transposition c'' b b b b \transposition
c'}}
> >>   }
> >>   \layout {}
> >>   \midi {}
> >> }
> >
> > :))))
> >
> > It works with the alternative  - b b b b - that gets correctly
transposed
> > but it doesn't with the repeat body - c' d' e' f'  -. Do I miss
anything?
>
> Well, this was more a sketch of the functionality to use than a sane
> proposal.  If you are going to use \expandRepeats, you'll likely want to
> order this as
>
> \score {
>   {
>     \mark "2nd time 8va"
>     \repeat volta 2 {c' d' e' f'}
>     \alternative {{a a a a \transposition c''}{b b b b \transposition c'}}
>   }
>   \layout {}
>   \midi {}
> }
>
> instead, namely setting up the "transposition" for the next repeat at
> the end of the preceding alternative.

just because you used in both your example the magic "\transposition" I
would not say that your first example was just a "sketch" of what you did
in your last example :)

Anyway, really nice escamotage. I will try to avoid it anytime that's
possible... but not more!

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

Reply via email to