]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/piano-template-with-centered-dynamics.ly
lilypond-book robustness: ensure EOL at the end of @verbatim
[lilypond.git] / input / lsr / piano-template-with-centered-dynamics.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.13.1"
4
5 \header {
6   lsrtags = "expressive-marks, keyboards, template"
7
8 %% Translation of GIT committish: dff50e8e1d3134657a6b6203b9c93826dc4cef65
9   texidoces = "
10 Muchas partituras de piano tienen las indicaciones dinámicas
11 centradas entre los dos pentagramas.  Esto requiere un poco de
12 trucaje, pero puesto que la plantilla está aquí mismo, no tenemos
13 que hacer este trucaje por nuestra cuenta.
14
15 "
16   doctitlees = "Plantilla de piano con matices centrados"
17 %% Translation of GIT committish: 17633f6b8681af86230aa84597fe7561e98c91d6
18   
19   texidocde = "
20 In der meisten Klaviernotation werden die Dynamikzeichen zwischen 
21 den beiden Systemen zentriert. Für LilyPond muss man die Einstellungen 
22 etwas anpassen, aber Sie können ja das angepasste Beispiel von hier 
23 kopieren.
24 "
25
26 %% Translation of GIT committish: 06d99c3c9ad1c3472277b4eafd7761c4aadb84ae
27   texidocja = "
28 多くのピアノ譜は、強弱記号を 2 つの譜の間に置きます。これを実現するにはちょっ@c
29 とした調整が必要ですが、そのテンプレートがここにあるので、あなた自身が調整を行@c
30 う必要はありません。
31 "
32
33   texidoc = "
34 Many piano scores have the dynamics centered between the two staves.
35 This requires a bit of tweaking to implement, but since the template is
36 right here, you don't have to do the tweaking yourself.
37
38 "
39   doctitle = "Piano template with centered dynamics"
40 } % begin verbatim
41
42 global = {
43   \key c \major
44   \time 4/4
45 }
46
47 upper = \relative c'' {
48   \clef treble
49   a4 b c d
50 }
51
52 lower = \relative c {
53   \clef bass
54   a2 c
55 }
56
57 dynamics = {
58   s2\fff\> s4 s\!\pp
59 }
60
61 pedal = {
62   s2\sustainOn s\sustainOff
63 }
64
65 \score {
66   \new PianoStaff = "PianoStaff_pf" <<
67     \new Staff = "Staff_pfUpper" << \global \upper >>
68     \new Dynamics = "Dynamics_pf" \dynamics
69     \new Staff = "Staff_pfLower" << \global \lower >>
70     \new Dynamics = "pedal" \pedal
71   >>
72
73   \layout {
74     % define Dynamics context
75     \context {
76       \type "Engraver_group"
77       \name Dynamics
78       \alias Voice
79       \consists "Output_property_engraver"
80       \consists "Piano_pedal_engraver"
81       \consists "Script_engraver"
82       \consists "New_dynamic_engraver"
83       \consists "Dynamic_align_engraver"
84       \consists "Text_engraver"
85       \consists "Skip_event_swallow_translator"
86       \consists "Axis_group_engraver"
87
88       pedalSustainStrings = #'("Ped." "*Ped." "*")
89       pedalUnaCordaStrings = #'("una corda" "" "tre corde")
90       \override DynamicLineSpanner #'Y-offset = #0
91       \override TextScript #'font-size = #2
92       \override TextScript #'font-shape = #'italic
93       \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
94     }
95     % modify PianoStaff context to accept Dynamics context
96     \context {
97       \PianoStaff
98       \accepts Dynamics
99     }
100   }
101 }
102
103 \score {
104   \new PianoStaff = "PianoStaff_pf" <<
105     \new Staff = "Staff_pfUpper" << \global \upper \dynamics \pedal >>
106     \new Staff = "Staff_pfLower" << \global \lower \dynamics \pedal >>
107   >>
108   \midi { }
109 }