Hi Knute,

Am 11.05.25 um 22:49 schrieb Knute Snortum:
I have a situation where there is a volta repeat with a first and second ending.  The staff starts in treble clef, then changes to bass clef at the beginning of the first ending and then back to treble. Likewise the second ending starts in bass clef.  The problem is that the end of the first ending shows a bass change clef, as if the first ending were going to go straight into the second ending.  I'm trying to eliminate this bass change clef.

Isn't this a task for "break-align-orders"? Note that there should (I think) definitely be a clef _change_ symbol before the 2nd volta; to me, it feels strange to simply land in a new line with a new clef at the beginning without having encountered a clef-change instruction along the way.

Lukas

%%%
\version "2.24.4"

clefAfterBarline =
\once \override Score.BreakAlignment.break-align-orders =
  #(make-vector 3 '(left-edge
                    cue-end-clef
                    ambitus
                    breathing-sign
                    staff-bar
                    clef
                    cue-clef
                    time-signature
                    key-cancellation
                    key-signature
                    custos))

\relative {
  c'4 c c c
  \repeat volta 2 {
    c4 c c c
    \alternative {
      {
        \clef bass c,4 c c
        \override Staff.Clef.break-visibility = #begin-of-line-visible
        \clef treble c'
        \break
      }
      {
        \clefAfterBarline
        \clef bass c,4 c c c
      }
    }
  }
  c4 c c c
}

\layout {
  indent = 0
  ragged-right = ##t
}
%%%

Reply via email to