[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Nested segno and volta repeats
From: |
Dan Eble |
Subject: |
Re: Nested segno and volta repeats |
Date: |
Sun, 29 May 2022 09:18:46 -0400 |
On May 29, 2022, at 03:56, Jean Abou Samra <jean@abou-samra.fr> wrote:
>
> Hi Dan,
>
> Is there any way to get this repeat structure with the recent
> repeat additions? This is from a question on the user list.
>
> ||: A :|| B ||
> Fine D.C. Al Fine
>
> -> A A B A
How cruel it would have been not to support sonata form!
The solution uses the functions documented in the Notation Reference in section
"Other variation in repeated sections."
input/regression/volta-spec-volta-in-segno.ly shows how to code the variation,
but it leaves out \fine for simplicity. You want something like this:
```
\version "2.23.10"
exposition = \fixed c' { s1^"A" }
development = \fixed c' { s1^"B" }
piece = \new Staff <<
\repeat segno 2 {
\volta 1 \repeat volta 2 \exposition
\volta 2 { \unfolded \exposition \fine }
\development
}
>>
\score { \piece }
\score { \unfoldRepeats \piece }
```
—
Dan