Piano template with centered dynamics
Appearance
Many piano scores have the dynamics centered between the two staves. Using the Dynamics context this is quite easy to achieve.
\version "2.24"
global = {
\key c \major
\time 4/4
}
upper = \relative c'' {
\clef treble
a4 b c d
}
lower = \relative c {
\clef bass
a2 c
}
dynamics = {
s2\fff\> s4 s\!\pp
}
pedal = {
s2\sustainOn s\sustainOff
}
\new PianoStaff = "PianoStaff_pf" <<
\new Staff = "right" << \global \upper >>
\new Dynamics = "dynamics" \dynamics
\new Staff = "left" << \global \lower >>
\new Dynamics = "pedal" \pedal
>>