]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/piano-template-with-centered-dynamics.ly
Fix 546.
[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.13.1"
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   texidocde = "
16 In der meisten Klaviernotation werden die Dynamikzeichen zwischen 
17 den beiden Systemen zentriert. Für LilyPond muss man die Einstellungen 
18 etwas anpassen, aber Sie können ja das angepasste Beispiel von hier 
19 kopieren.
20 "
21
22   texidocja = "
23 多くのピアノ譜は、強弱記号を 2 つの譜の間に置きます。これを実現するにはちょっ@c
24 とした調整が必要ですが、そのテンプレートがここにあるので、あなた自身が調整を行@c
25 う必要はありません。
26 "
27
28   lsrtags = "expressive-marks,keyboards,template"
29   texidoc = "
30 Many piano scores have the dynamics centered between the two staves.
31 This requires a bit of tweaking to implement, but since the template is
32 right here, you don't have to do the tweaking yourself.
33 "
34   doctitle = "Piano template with centered dynamics"
35 } % begin verbatim
36
37
38 global = {
39   \key c \major
40   \time 4/4
41 }
42
43 upper = \relative c'' {
44   \clef treble
45   a4 b c d
46 }
47
48 lower = \relative c {
49   \clef bass
50   a2 c
51 }
52
53 dynamics = {
54   s2\fff\> s4 s\!\pp
55 }
56
57 pedal = {
58   s2\sustainOn s\sustainOff
59 }
60
61 \score {
62   \new PianoStaff = "PianoStaff_pf" <<
63     \new Staff = "Staff_pfUpper" \upper
64     \new Dynamics = "Dynamics_pf" \dynamics
65     \new Staff = "Staff_pfLower" << \lower >>
66     \new Dynamics = "pedal" \pedal
67   >>
68
69   \layout {
70     % define Dynamics context
71     \context {
72       \type "Engraver_group"
73       \name Dynamics
74       \alias Voice
75       \consists "Output_property_engraver"
76       \consists "Piano_pedal_engraver"
77       \consists "Script_engraver"
78       \consists "New_dynamic_engraver"
79       \consists "Dynamic_align_engraver"
80       \consists "Text_engraver"
81       \consists "Skip_event_swallow_translator"
82       \consists "Axis_group_engraver"
83
84       pedalSustainStrings = #'("Ped." "*Ped." "*")
85       pedalUnaCordaStrings = #'("una corda" "" "tre corde")
86       \override DynamicLineSpanner #'Y-offset = #0
87       \override TextScript #'font-size = #2
88       \override TextScript #'font-shape = #'italic
89       \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
90     }
91     % modify PianoStaff context to accept Dynamics context
92     \context {
93       \PianoStaff
94       \accepts Dynamics
95     }
96   }
97 }
98
99 \score {
100   \new PianoStaff = "PianoStaff_pf" <<
101     \new Staff = "Staff_pfUpper" << \global \upper \dynamics \pedal >>
102     \new Staff = "Staff_pfLower" << \global \lower \dynamics \pedal >>
103   >>
104   \midi { }
105 }