]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/piano-template-with-centered-dynamics.ly
a2501d3f70c53e2e9a50d88b7b4884d2bca11333
[lilypond.git] / input / lsr / piano-template-with-centered-dynamics.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 \version "2.11.57"
4
5 \header {
6   texidoces = "
7 Muchas partituras de piano tienen las indicaciones dinámicas
8 centradas entre los dos pentagramas.  Esto requiere un poco de
9 trucaje, pero puesto que la plantilla está aquí mismo, no tenemos
10 que hacer este trucaje por nuestra cuenta.
11
12 "
13   doctitlees = "Plantilla de piano con matices centrados"
14
15   lsrtags = "expressive-marks,keyboards,template"
16   texidoc = "
17 Many piano scores have the dynamics centered between the two staves.
18 This requires a bit of tweaking to implement, but since the template is
19 right here, you don't have to do the tweaking yourself.
20 "
21   doctitle = "Piano template with centered dynamics"
22 } % begin verbatim
23
24 upper = \relative c'' {
25   \clef treble
26   \key c \major
27   \time 4/4
28   
29   a4 b c d
30 }
31
32 lower = \relative c {
33   \clef bass
34   \key c \major
35   \time 4/4
36   
37   a2 c
38 }
39
40 dynamics = {
41   s2\fff\> s4 s\!\pp
42 }
43
44 pedal = {
45   s2\sustainOn s\sustainOff
46 }
47
48 \score {
49   \new PianoStaff <<
50     \new Staff = "upper" \upper
51     \new Dynamics = "dynamics" \dynamics
52     \new Staff = "lower" <<
53       \clef bass
54       \lower
55     >>
56     \new Dynamics = "pedal" \pedal
57   >>
58   \layout {
59     \context {
60       \type "Engraver_group"
61       \name Dynamics
62       % So that \cresc works, for example.
63       \alias Voice
64       \consists "Output_property_engraver"
65       
66       \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
67       \override DynamicLineSpanner #'Y-offset = #0
68       pedalSustainStrings = #'("Ped." "*Ped." "*")
69       pedalUnaCordaStrings = #'("una corda" "" "tre corde")
70       
71       \consists "Piano_pedal_engraver"
72       \consists "Script_engraver"
73       \consists "Dynamic_engraver"
74       \consists "Text_engraver"
75       
76       \override TextScript #'font-size = #2
77       \override TextScript #'font-shape = #'italic
78       
79       \consists "Skip_event_swallow_translator"
80       
81       \consists "Axis_group_engraver"
82     }
83     \context {
84       \PianoStaff
85       \accepts Dynamics
86     }
87   }
88 }
89 \score {
90   \new PianoStaff <<
91     \new Staff = "upper" << \upper \dynamics \pedal >>
92     \new Staff = "lower" << \lower \dynamics \pedal >>
93   >>
94   \midi { }
95 }