[ << Musical notation ] | [Top][Contents][Index] | [ Specialist notation >> ] |
[ < Alternative endings ] | [ Up : Long repeats ] | [ Al-fine repeats > ] |
Other variation in repeated sections
An \alternative
block can be used within a \repeat
block to produce notation similar to alternative endings
(see Alternative endings).
\fixed c'' { \repeat volta 2 { R1 \alternative { \volta 1 { c1 } \volta 2 { d1 } } R1 } }
The \volta
command is not limited to use on the elements of
an \alternative
block. It can be used anywhere within a
\repeat
to designate music for particular volte, though it
does not create brackets in other cases.
When a \repeat
is unfolded, volta-specific music is omitted
from every volta to which it does not apply. Providing an empty
Scheme list in place of volta numbers removes the music entirely.
music = \repeat volta 3 { \volta #'() { s1*0^\markup { \bold "3×" } } \volta 1 { s1*0_\markup { \italic dolce } } g''1 } \score { \music } \score { \unfoldRepeats \music }
When a \repeat
is unfolded, it may be desirable not only to
filter out volta-specific music, but also to add music that was
not present in the folded form. The \unfolded
command
designates music to be ignored until the enclosing \repeat
is unfolded.
music = \fixed c' { \repeat volta 2 { c1 << \volta #'() { \once \override TextSpanner.bound-details.left.text = "2nd time tacet" s4*7\startTextSpan s4\stopTextSpan } \volta 1 { f4 f f f | f f f f } \volta 2 { \unfolded { R1*2 } } >> c'1 } \fine } \score { \music } \score { \unfoldRepeats \music }
Note: The \volta
and \unfolded
commands
function with respect to the innermost repeat enclosing them.
[ << Musical notation ] | [Top][Contents][Index] | [ Specialist notation >> ] |
[ < Alternative endings ] | [ Up : Long repeats ] | [ Al-fine repeats > ] |