Hello, LilyPonders,

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.  An illustration will probably make things clearer:

%%%
\version "2.24.4"

\relative {
  c'4 c c c
  \repeat volta 2 {
    c4 c c c
    \alternative {
      {
        \clef bass c,4 c c
        % \omit Staff.Clef % this omits the change clef and the initial clef
        \override Staff.Clef.break-visibility = #begin-of-line-visible
        \clef treble c'
        \break
      }
      {
        \clef bass c,4 c c c
      }
    }
  }
  c4 c c c
}

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


I've attached a screenshot.  As you can see, I've tried omitting the clef,
but both the change clef and the initial clef on the next line are
omitted.  I tried using the break-visibility property but I wasn't able to
get this to work either (maybe I'm not doing it the correct way?)  This
also might be considered a LilyPond bug, as the clef engraver shouldn't put
a change clef at the end of the first ending based on the clef in the
second ending.

So how do I eliminate the change clef at the end of the first ending?
Thanks.

--
Knute Snortum

Reply via email to