Probably what you want is \omit Clef or \override Clef.break-visibility = #
all-invisible, so that it doesn't take up space, not just that it's hidden.
I would expect removing the engraver to have surprising results, since even
if a clef isn't printed, Lilypond still needs to know how to assign pitches
to staff lines and spaces.

Saul

On Fri, Jan 31, 2025 at 1:49 PM éric BELLOCQ <eric.bell...@yahoo.fr> wrote:

> Hello,
> Can be solved using Clef.transparent = ##t instead.
> I couldn't reproduce the problem when using a G clef. and also when notes
> are less far from key signature.
>
> I was wondering about an eventual bug ??
>
> Yours
> Éric
>
>
>
> \version "2.24.4"
>
> \score {
>   <<
>     \new Staff
>     <<
>       \key d \major
>       \clef F
>       \new Voice {\voiceOne \repeat unfold 4 d'4 \break \repeat unfold 12
> d'4 }
>       \new Voice {\voiceTwo \repeat unfold 16 e,4}
>     >>
>     \new TabStaff \with {
>       \remove "Clef_engraver"
>     }
>     <<
>       \new TabVoice { c1 1 }
>     >>
>   >>
> }
>
> \score {
>   <<
>     \new Staff
>     <<
>       \key d \major
>       \clef F
>       \new Voice {\voiceOne \repeat unfold 4 d'4 \break \repeat unfold 12
> d'4 }
>       \new Voice {\voiceTwo \repeat unfold 16 e,4}
>     >>
>     \new TabStaff \with {
>       \override Clef.transparent = ##t
>     }
>     <<
>       \new TabVoice { c1 1 }
>     >>
>   >>
> }
>
> \score {
>   <<
>     \new Staff
>     <<
>       \key es \major
>       \clef C
>       \new Voice {\voiceOne \repeat unfold 4 c''4 \break \repeat unfold 12
> d''4}
>       \new Voice {\voiceTwo \repeat unfold 16 b,4 }
>     >>
>     \new TabStaff \with {
>       \remove "Clef_engraver"
>     }
>     <<
>       \new TabVoice { c1 1 }
>     >>
>   >>
> }
>
>

Reply via email to