lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2.23.81 blank bar of new line between D.S. and coda


From: Paul Scott
Subject: Re: 2.23.81 blank bar of new line between D.S. and coda
Date: Sun, 27 Nov 2022 22:27:06 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3

On 11/27/22 5:38 PM, Jean Abou Samra wrote:


Le 25/11/2022 à 04:08, Paul Scott a écrit :
How do I add a totally blank bar (something like \stopStaff s1 \startStaff) between the D.S. and the Coda in the following example?

Or a new line?

\version "2.23.81"

music = {
  \repeat segno 2 {
    c'1 1 1
    \alternative{
      \volta 2 \volta #'() {
    \section
    \sectionLabel "Coda"
      }
    }
    c'1
    \once \set Score.dalSegnoTextFormatter =
    #(lambda (context repeat-count markups)
      #{ \markup \column { "D.S." "Al Coda" "with Repeats" } #})
  }
  d'1 \bar "|."
}


For me, this works:

\version "2.23.81"

{
  \repeat segno 2 {
    c'1 1 1
    \once \set Score.dalSegnoTextFormatter =
    #(lambda (context repeat-count markups)
      #{ \markup \column { "D.S." "Al Coda" "with Repeats" } #})
  }
  \stopStaff
  s1*4
  \startStaff
  \section
  \sectionLabel "Coda"
  d'1 \bar "|."
}


Of course your code works fine.  My real code has a repeat volta 2 \alternative ... before the D.S, which I hope to figure out myself.

Note that this doesn't have your "c'1" before \once \set ...
Was that one intended?
That was an incorrect attempt to get the rest of the structure that I need.
The way you wrote it, the first
note in the section marked "Coda" is actually already
played the first time, and "D.S. Al Coda with Repeats"
appears one measure after "Coda" (as is clear if you
change \column { ... } to \column \right-align { ... } ).

Yes, I do know how to change stuff in the \markup { ... } to get what I want.

Thank you very much,

Paul





reply via email to

[Prev in Thread] Current Thread [Next in Thread]