Hi Seb,

On Wed, Dec 13, 2023 at 11:00 AM Sebastien Richard <[email protected]>
wrote:

> Hello,
>
> How can I hide a note inside a drum score ? I tried following the doc here 
> *https://lilypond.org/doc/v2.23/Documentation/notation/visibility-of-objects
> <https://lilypond.org/doc/v2.23/Documentation/notation/visibility-of-objects>*
>  but
> I did not managed to make it work
>

The issue you are running into is that overrides won't work on a single
item when there's more than one of them happening at the same moment in
the music. As these are (basically) notes within a chord, they're at the
same moment. And the \hide command is just a shortcut for an override on
the grob's Transparent property. In the case of simultaneous grobs, you
want the \tweak command.
http://lilypond.org/doc/v2.25/Documentation/notation/tweak-and-single

So, your code would become:

\version "2.24.2"

up = \drummode {
  \slurDown \grace { sn16 sn( }  <cymc \tweak transparent ##t sn) bd>4
}

\score {
  \new DrumStaff <<
    \new DrumVoice {
      \voiceOne \up
    }
  >>
  \layout {}
}

-- 
Michael

Reply via email to