[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \repeat unfold has problems inside \repeat volta
From: |
Valentin Petzel |
Subject: |
Re: \repeat unfold has problems inside \repeat volta |
Date: |
Fri, 01 Jul 2022 12:00:27 +0200 |
Hello Michael,
this is not a bug. You’re supposed to put the alternative after the repeat
part not inside, so \repeat volta 2 { ... } \alternative { ... }. The way you
have put it the \alternative ... is used as alternatives for the \repeat
unfold (as it is placed after that one), so after the first repeat you get the
first alternative, after the second repeat the second alternative, which is
exactly what you are seeing here.
Cheers,
Valentin
Am Freitag, 1. Juli 2022, 11:45:17 CEST schrieb Michael Gerdau:
> Hi list!
>
> the attached Lilypond code IMO shows a bug.
> Or have I misunderstood the way it is supposed to work?
>
> \version "2.23.10"
>
> music = \relative g' {
> \time 6/8
> \partial 8
> r8 |
> \repeat volta 2 {
> g8 r8 r8 d8 r8 r8 | g8 r8 r8 d8 r8 r8 | g8 r8 r8 d8 r8 r8 | g8 r8
> r8 d8 r8 r8 |
> g8 r8 r8 d8 r8 r8 | g8 r8 r8 d8 r8 r8 | g8 r8 r8 d8 r8 r8 | g8 r8
> r8 d8 r8 r8 |
> %g8 r8 r8 d8 r8 r8 | g8 r8 r8 d8 r8 r8 | g8 r8 r8 d8 r8 r8 | g8 r8
> r8 d8 r8 r8 |
> %g8 r8 r8 d8 r8 r8 | g8 r8 r8 d8 r8 r8 | g8 r8 r8 d8 r8 r8 | g8 r8
> r8 d8 r8 r8 |
> \alternative {
> \volta 1 { g8 r8 r8 d8 r8 r8 }
> \volta 2 { g8 r8 r8 g,8 r8 }
> }
> }
> \bar "|."
> }
>
> \markup "This is how it is supposed to look like..."
> \score {
> \music
> }
>
>
> musicb = \relative g' {
> \time 6/8
> \partial 8
> r8 |
> \repeat volta 2 {
> \repeat unfold 8 { g8 r8 r8 d8 r8 r8 }
> \alternative {
> \volta 1 { g8 r8 r8 d8 r8 r8 }
> \volta 2 { g8 r8 r8 g,8 r8 }
> }
> }
> \bar "|."
> }
>
> \markup "...and this IMO is a bug in bar 4"
> \score {
> \musicb
> }
>
> Kind regards,
> Michael
signature.asc
Description: This is a digitally signed message part.
- \repeat unfold has problems inside \repeat volta, Michael Gerdau, 2022/07/01
- Re: \repeat unfold has problems inside \repeat volta,
Valentin Petzel <=
- Re: \repeat unfold has problems inside \repeat volta, Michael Gerdau, 2022/07/01
- Re: \repeat unfold has problems inside \repeat volta, David Kastrup, 2022/07/01
- Re: \repeat unfold has problems inside \repeat volta, Michael Gerdau, 2022/07/01
- Re: \repeat unfold has problems inside \repeat volta, Simon Albrecht, 2022/07/02
- Re: \repeat unfold has problems inside \repeat volta, Jean Abou Samra, 2022/07/02
- Re: \repeat unfold has problems inside \repeat volta, Carl Sorensen, 2022/07/02
- LilyPond on macOS (was: \repeat unfold has problems inside \repeat volta), Jean Abou Samra, 2022/07/02
- Re: LilyPond on macOS (was: \repeat unfold has problems inside \repeat volta), Carl Sorensen, 2022/07/02
- Re: LilyPond on macOS (was: \repeat unfold has problems inside \repeat volta), Jean Abou Samra, 2022/07/02
- Re: LilyPond on macOS (was: \repeat unfold has problems inside \repeat volta), Hans Åberg, 2022/07/02