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