]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/piano-template-with-centered-dynamics.ly
Merge branch 'lilypond/translation' of ssh://trettig@git.sv.gnu.org/srv/git/lilypond...
[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.12.0"
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   lsrtags = "expressive-marks,keyboards,template"
28   texidoc = "
29 Many piano scores have the dynamics centered between the two staves.
30 This requires a bit of tweaking to implement, but since the template is
31 right here, you don't have to do the tweaking yourself.
32 "
33   doctitle = "Piano template with centered dynamics"
34 } % begin verbatim
35
36
37 global = {
38   \key c \major
39   \time 4/4
40 }
41
42 upper = \relative c'' {
43   \clef treble
44   a4 b c d
45 }
46
47 lower = \relative c {
48   \clef bass
49   a2 c
50 }
51
52 dynamics = {
53   s2\fff\> s4 s\!\pp
54 }
55
56 pedal = {
57   s2\sustainOn s\sustainOff
58 }
59
60 \score {
61   \new PianoStaff = "PianoStaff_pf" <<
62     \new Staff = "Staff_pfUpper" \upper
63     \new Dynamics = "Dynamics_pf" \dynamics
64     \new Staff = "Staff_pfLower" << \lower >>
65     \new Dynamics = "pedal" \pedal
66   >>
67
68   \layout {
69     % define Dynamics context
70     \context {
71       \type "Engraver_group"
72       \name Dynamics
73       \alias Voice
74       \consists "Output_property_engraver"
75       \consists "Piano_pedal_engraver"
76       \consists "Script_engraver"
77       \consists "New_dynamic_engraver"
78       \consists "Dynamic_align_engraver"
79       \consists "Text_engraver"
80       \consists "Skip_event_swallow_translator"
81       \consists "Axis_group_engraver"
82
83       pedalSustainStrings = #'("Ped." "*Ped." "*")
84       pedalUnaCordaStrings = #'("una corda" "" "tre corde")
85       \override DynamicLineSpanner #'Y-offset = #0
86       \override TextScript #'font-size = #2
87       \override TextScript #'font-shape = #'italic
88       \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
89     }
90     % modify PianoStaff context to accept Dynamics context
91     \context {
92       \PianoStaff
93       \accepts Dynamics
94     }
95   }
96 }
97
98 \score {
99   \new PianoStaff = "PianoStaff_pf" <<
100     \new Staff = "Staff_pfUpper" << \global \upper \dynamics \pedal >>
101     \new Staff = "Staff_pfLower" << \global \lower \dynamics \pedal >>
102   >>
103   \midi { }
104 }