4 lsrtags = "expressive-marks,piano-music,template"
6 Many piano scores have the dynamics centered between the two staves.
7 This requires a bit of tweaking to implement, but since the template is
8 right here, you don't have to do the tweaking yourself.
10 doctitle = "Piano template with centered dynamics"
13 upper = \relative c'' {
35 s2\sustainDown s2\sustainUp
40 \new Staff = "upper" \upper
41 \new Dynamics = "dynamics" \dynamics
42 \new Staff = "lower" <<
46 \new Dynamics = "pedal" \pedal
50 \type "Engraver_group"
52 \alias Voice % So that \cresc works, for example.
53 \consists "Output_property_engraver"
55 \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
56 \override DynamicLineSpanner #'Y-offset = #0
57 pedalSustainStrings = #'("Ped." "*Ped." "*")
58 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
60 \consists "Piano_pedal_engraver"
61 \consists "Script_engraver"
62 \consists "Dynamic_engraver"
63 \consists "Text_engraver"
65 \override TextScript #'font-size = #2
66 \override TextScript #'font-shape = #'italic
68 \consists "Skip_event_swallow_translator"
70 \consists "Axis_group_engraver"
80 \new Staff = "upper" << \upper \dynamics >>
81 \new Staff = "lower" << \lower \dynamics >>
82 \new Dynamics = "pedal" \pedal
86 \type "Performer_group"
88 \consists "Piano_pedal_performer"