>From what I understood from the learning and reference material, there is
no difference between the "\repeat volta" and "\repeat segno" except the
automatic addition of the segno and coda marks. Coming from the opposite
direction, I've asked a similar but contrary question with regards the
segno structure
<https://lists.gnu.org/archive/html/lilypond-user/2024-09/msg00178.html>.

How you would actually write your MWE so that it can be exported unfolded
is by putting the b and c in the \volta 2 music expression and shortening
the bracket. Remember to use void \volta to hide repeat markings. You can
also use tags to create better directions for the unfolded score.

%%CODE BEGINS
\version "2.25.20"
%%This function serves to short the volta bracket.
shortVoltaBracketOnce =
#(define-music-function
() () #{
\once \override Score.VoltaBracket.musical-length = \musicLength 1
#} )
%%Now a variable to compare two scores: one folded and another one unfolded.
howToDoItRight = {
\relative c' {
    a1
    \repeat volta 2 {
    \volta #'() {\segnoMark \default}
    \volta #'() {\textMark "Print me only in the folded version!"}
    \tag #'unfolded {\volta #'(1) {\textMark "Now only on the unfolded
one!"}}
    d'
    \alternative {
    \volta 1 {c,}
    \volta 2 {
      \shortVoltaBracketOnce
      a'  b c, \volta #'() { \jump \markup { \right-column {
    \concat { "D.S. al " \coda }
    "e poi la Coda" }}} % end of right column, markup & void volta
    } % add the whole "post ritornello" expression.
    } % end of alternative
    } % end of ritornello
    \break
    \mark "Coda"
    a'
}} % fixed & variable
\score { \removeWithTag #'unfolded \howToDoItRight }
\score { \unfoldRepeats \howToDoItRight }
%%CODE ENDS

Em qui., 20 de mar. de 2025 às 16:03, Paul Scott <psc...@pima.edu> escreveu:

> Hi,
>
> This may have been asked before'
>
> Is there a way to do the following with Segno repeat structure?
>
> \version "2.25.24"
>
> \fixed c' {
>    a1
>    \segnoMark \default
>    \repeat volta 2
>    { d'1 }
>    \alternative{
>      \volta 1 { \codaMark \default c }
>      \volta 2 a
>    }
>    b
>    \textMark \markup{D.S. al Coda}
>    c \bar "||"
>    \break
>    \textMark \markup{Coda}
>    b
>    \bar "|."
> }
>
> Thank you,
>
> Paul
>
>
>
>

Reply via email to