LSR: Redo local update.
[lilypond/mpolesky.git] / Documentation / snippets / new / piano-template-with-centered-dynamics.ly
blobdcfa46dffc8f0800f011519135edc572eab366ec
1 \version "2.13.4"
3 \header {
4 lsrtags = "expressive-marks, keyboards, template"
5 texidoc = "
6 Many piano scores have the dynamics centered between the two staves.
7 The @code{Dynamics} context, if placed between staves, will
8 automatically position dynamics correctly.
11 doctitle = "Piano template with centered dynamics"
14 global = {
15 \key c \major
16 \time 4/4
19 upper = \relative c'' {
20 \clef treble
21 a4 b c d
24 lower = \relative c {
25 \clef bass
26 a2 c
29 dynamics = {
30 s2\fff\> s4 s\!\pp
33 pedal = {
34 s2\sustainOn s\sustainOff
37 \score {
38 \new PianoStaff = "PianoStaff_pf" <<
39 \new Staff = "Staff_pfUpper" << \global \upper >>
40 \new Dynamics = "Dynamics_pf" \dynamics
41 \new Staff = "Staff_pfLower" << \global \lower >>
42 \new Dynamics = "pedal" \pedal
44 \layout { }
47 \score {
48 \new PianoStaff = "PianoStaff_pf" <<
49 \new Staff = "Staff_pfUpper" << \global \upper \dynamics \pedal >>
50 \new Staff = "Staff_pfLower" << \global \lower \dynamics \pedal >>
52 \midi { }