Le 26/10/2021 à 01:21, David Zelinsky a écrit :
I have a repeated section that starts in tenor clef, then changes to
bass clef (before the repeat).  I want to show a tenor clef at the end
of the 1st ending, just before the repeat sign, as a reminder that the
repeat starts in that clef.  But when I put '\clef "tenor"' in the first
\alternative, the 2nd ending then also gets engraved in tenor clef,
which is not right.  Adding '\clef "bass" at the beginning of the 2nd
\alternative makes the tenor clef in the 1st ending disappear.

What is the correct way to deal with this situation?

(I'm sure I've seen a way to force a clef to be visible in situations
like this, but try as I might I can't find it.)

-David


David,

I'd do it like this:

\version "2.22.1"

{
  \clef tenor
  \repeat volta 2 {
    c'1
    \clef bass
    c'1
  }
  \alternative {
    {
      c'1
      \set Staff.clefGlyph = "clefs.C"
    }
    { c'1 }
  }
  c'1
}

Best,
Jean

Reply via email to