Hi Lukas,

We have a winner!

%%%
\version "2.25.33"

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

music_only =
\new Staff <<
  \new Voice = "sop" {
    \voiceOne
    c''4 4 4 d''
  }
  \\
  \new Voice = "alt" {
    \voiceTwo
    c''4 b' a' g'
  }
>>

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

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

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