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