lilypond-user
[Top][All Lists]
Advanced

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

Re: Hiding cautionary clef


From: Aaron Hill
Subject: Re: Hiding cautionary clef
Date: Thu, 09 May 2019 11:18:48 -0700
User-agent: Roundcube Webmail/1.3.8

On 2019-05-09 6:37 am, Orm Finnendahl wrote:
Hi,

 is there a straightforward way to remove a cautionary clef at the end
of a line when the clef changes between the current and the next line
while keeping it at the beginning of the next line?

I tried different settings for break-visibility and \omit but that
either removes the Clefs alltogether or doesn't have any effect.

According to the Notation Reference [1], what you need to set is Staff.explicitClefVisibilty to control the appearance of this so-called "warning" clef:

By default, a clef change taking place at a line break will cause the
new clef symbol to be printed at the end of the previous line, as a
warning clef, as well as the beginning of the next. This warning clef
can be suppressed.

%%%%
\clef treble { c'2 c' } \break
\clef bass { c'2 c' } \break
\clef alto
  \set Staff.explicitClefVisibility = #end-of-line-invisible
  { c'2 c' } \break
  \unset Staff.explicitClefVisibility
\clef bass { c'2 c' } \break
%%%%

[1]: http://lilypond.org/doc/v2.19/Documentation/notation/displaying-pitches#clef


-- Aaron Hill



reply via email to

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