Piano template with centered dynamics: Difference between revisions
Appearance
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Many piano scores have the dynamics centered between the two staves. | Many piano scores have the dynamics centered between the two staves. Using the <code>Dynamics</code> context this is quite easy to achieve. | ||
<lilypond version="2.24"> | <lilypond version="2.24"> | ||
global = { | global = { | ||
\key c \major | \key c \major | ||
| Line 27: | Line 25: | ||
} | } | ||
\new PianoStaff = "PianoStaff_pf" << | |||
\new Staff = "right" << \global \upper >> | |||
\new Dynamics = "dynamics" \dynamics | |||
\new Staff = "left" << \global \lower >> | |||
\new Dynamics = "pedal" \pedal | |||
>> | |||
</lilypond> | </lilypond> | ||
[[Category:Expressive marks]] | |||
[[Category:Keyboards]] | |||
[[Category:Really simple]] | |||
[[Category:Template]] | [[Category:Template]] | ||
[[Category: | [[Category:Snippet]] | ||
Latest revision as of 17:41, 12 December 2025
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
>>