Hi Kieren,

Is there not something like

    \applyToContext Voice \hideNotes

Not to my knowledge. But one can brute-force it!

%%%
\version "2.25.33"

forceContext =
#(define-music-function (context-type mus) (symbol? ly:music?)
   (music-map
    (lambda (m)
      (if (eq? (ly:music-property m 'name) 'ContextSpeccedMusic)
          (ly:music-set-property! m 'context-type context-type))
      m)
    mus))

music_only =
\new PianoStaff
<<
  \new Staff  \relative c'' {
    c4 4 4 d4
  }
  \new Staff  \relative c'' {
    c4 4 4 d4
  }
>>

hider = \context Bottom {
  s4 \forceContext Score \hideNotes s2 \forceContext Score \unHideNotes
}

\score {
  << \music_only \hider >>
}

Lukas


Reply via email to