On Fri, Feb 3, 2023 at 8:41 AM Knute Snortum <ksnor...@gmail.com> wrote: > > On Fri, Feb 3, 2023 at 12:21 AM Paulo Matos <pma...@igalia.com> wrote: > > > > Hi, > > > > I am trying to apply dynamic marking like piano and so forth to both > > staves. > [...] > > i.e. start a new group called Dynamics and add the dynamics there but > > this seems suboptimal as it makes the typesetting separate from the > > notes _and_ as far as I understand it, doesn't affect MIDI - and the > > first solution does. > > Is there a better solution to this? > > What I do is have a separate dynamics variable, then include that > variable in both staves of the piano staff in the midi block. Then I > switch the dynamic performer to the staff level. It looks like this > (for only one staff): [...]
And here's a more complete example that also shows how you can have dynamics in the staff as well as the dynamics "staff": \version "2.25.1" upper = { c''4 4 4 4 } lower = { \clef bass c4 4 4\mp 4 } dyn = { s4\f s\mf s s\p } \score { \new PianoStaff << \new Staff \upper \new Dynamics \dyn \new Staff \lower >> \layout {} } \score { << \new Staff << \upper \dyn >> \new Staff << \lower \dyn >> >> \midi { \context { \Staff \consists "Dynamic_performer" } \context { \Voice \remove "Dynamic_performer" } } } -- Knute Snortum