Le 23/07/2022 à 19:14, Jean Abou Samra a écrit :
to = #(define-music-function (ctx mus) (symbol? ly:music?) (make-music 'ContextExclusiveMusic 'target ctx 'element mus))
P.S. With some parser fiddling (and at the cost of making \to a reserved identifier), it should be possible to give \to a syntax like that of \new and \context. \to Staff ~ \to StaffGroup = "outer" \startHighlight