]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/dynamics-text-dynamics-context.ly
Release: bump Welcome versions.
[lilypond.git] / input / regression / dynamics-text-dynamics-context.ly
1 \version "2.19.21"
2
3 \header {
4   texidoc = "The @code{X-offset} of @code{DynamicText} grobs in a
5 @code{Dynamics} context should be averaged over the center of
6 @code{NoteColumn} grobs in the @code{DynamicText}'s @code{PaperColumn}.
7 "
8 }
9
10 \score {
11   <<
12     \new PianoStaff <<
13       \new Staff = "up" {
14         \clef treble
15         \relative {
16           c'4\p c c\mp c |
17           c4\mf c c\f c |
18           <<
19             \repeat unfold 8 c4
20             \new Dynamics = "dynamics" \with {
21               alignBelowContext = "up"
22             } {
23               s4\p s s\mp s |
24               s4\mf s s\f s
25             }
26           >>
27         }
28       }
29       \new Staff = "down" {
30         \clef bass
31         \repeat unfold 16 c4
32       }
33     >>
34   >>
35 }