Thanks for your reply

I tried your exemple with the tie which also work great

In the full drumscore the tie gets "pushed" down. I'm trying to figure out a 
way to reposition it but I can't get any command to do so (tried "\tweak 
positions" and "\override Tie.positions")

Any ideas ?


"You are thinking too complicated." ==> it's just an idea, I'm thinking even 
more complicated than that 🤪


BR

-----
 Seb


________________________________
From: lilypond-user-bounces+richardsgjm=hotmail....@gnu.org 
<lilypond-user-bounces+richardsgjm=hotmail....@gnu.org> on behalf of David 
Kastrup <d...@gnu.org>
Sent: Wednesday, December 13, 2023 17:49
To: Sebastien Richard <richards...@hotmail.com>
Cc: lilypond-user@gnu.org <lilypond-user@gnu.org>
Subject: Re: Hide a note inside a drumscore

Sebastien Richard <richards...@hotmail.com> writes:

> 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 
> but I did not managed to make it work
>
> Here is an example where I want to hide the snare :
>
> \version "2.24.2"
> up = \drummode {
>   \slurDown \grace {sn16 sn(} <cymc \once \hide NoteHead sn) bd>4
> }
> \score {
>   \new DrumStaff
>   << \new DrumVoice { \voiceOne \up } >>
>   \layout {}
> }

You are thinking too complicated.

\version "2.24.2"
up = \drummode {
  \slurDown \grace {sn16 sn(} <cymc \hide sn) bd>4
}
\score {
  \new DrumStaff
  << \new DrumVoice { \voiceOne \up } >>
  \layout {}
}

But I consider it very likely that you actually don't want a slur but a
tie:

\version "2.24.2"
up = \drummode {
  \grace {sn16 sn_~} <cymc \hide sn bd>4
}
\score {
  \new DrumStaff
  << \new DrumVoice { \voiceOne \up } >>
  \layout {}
}

--
David Kastrup

Reply via email to