lilypond-user
[Top][All Lists]
Advanced

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

Re: clef change in 1st ending


From: Jean Abou Samra
Subject: Re: clef change in 1st ending
Date: Tue, 26 Oct 2021 01:28:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.2

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

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