On 2021-09-17 8:44 am, Peter Toye wrote:
I'm using PartCombine for the first time to produce a piano reduction, and have found a slight problem. Because the dynamics are a bit complex I want to remove them from the piano part, but adding \remove "Dynamic_engraver" to each piano staff has no effect. What am I doing wrong please?
Not sure what's up with the engraver, but you could filter out events: %%%% noDynamics = #(define-music-function (music) (ly:music?) (define ((is-not type) music) (not (music-is-of-type? music type))) (music-filter (is-not 'dynamic-event) music)) asdf = { b'4\p b'4\mp b'4\ff b'4\sfz } { \asdf \noDynamics \asdf } %%%% -- Aaron Hill