Hi Lukas,

> Ah, but _this_ you can have with stock LilyPond (because you're still only 
> affecting a single Voice):
> hider = \context Bottom {
>   s4 \context Voice = "sop" \hideNotes s2 \context Voice = "sop" \unHideNotes
> }

D’oh!  :)

> You could probably also simply take "sop" instead of "Bottom".

Yes! That’s what Gabriel probably needs most:

%%%  SNIPPET BEGINS
\version "2.25.33"

%%%  entering notes ONLY
sopNotes = {
  c''4 4 4 d''
}

altNotes = {
  c''4 b' a' g'
}

%%%  here’s the hide/unhide stuff
hider = \context Voice = "sop" {
    s4 \hideNotes s2 \unHideNotes
}


%%%  showing all notes…
\score {
  \new Staff <<
    \new Voice = "sop" { \voiceOne \sopNotes }
    \new Voice = "alt" { \voiceTwo \altNotes }
  >>
}


%%  …and now hiding some notes!!
\score {
  \new Staff <<
    \new Voice = "sop" { \voiceOne << \sopNotes \hider >> }
    \new Voice = "alt" { \voiceTwo \altNotes }
  >>
}

\score {
  \new Staff \new Voice = "sop" << \sopNotes \hider >>
}
%%%  SNIPPET ENDS


Between this “vanilla” [single-context] application, and \forceContext, I’m 
pretty sure all bases are covered.

Thanks!
Kieren.

__________________________________________________

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.


Reply via email to