ActeUnSceneUn, take 5
[opera_libre.git] / definitions / layout.ly
blob4da83b72bd49ef5297ed003a1c19a40f839d1176
1 %------------------------------------------------------------------%
2 % Opéra Libre -- layout.ly %
3 % %
4 % (c) Valentin Villenave, 2008 %
5 % %
6 %------------------------------------------------------------------%
8 %%%%%%%%%%%%%%%%%%%%%%%%%%% Score Layout %%%%%%%%%%%%%%%%%%%%%%%%%%%
10 includeLayout = \layout {
11 %% Spacing Variables ----------------------------------------------%
12 indent = 2.0\cm
13 \context {
14 \Staff
15 \remove "Axis_group_engraver"
16 \consists "Hara_kiri_engraver"
17 \remove "Time_signature_engraver"
18 \accepts "Lyrics"
19 \override Beam #'auto-knee-gap = #'()
20 \override VerticalAxisGroup #'remove-empty = ##t
22 \context { \RhythmicStaff
23 \remove "Time_signature_engraver"
24 \remove "Axis_group_engraver"
25 \override VerticalAxisGroup #'remove-empty = ##t
26 \consists "Hara_kiri_engraver"
28 \context { \DrumStaff
29 \remove "Time_signature_engraver"
30 \remove "Axis_group_engraver"
31 \override VerticalAxisGroup #'remove-empty = ##t
32 \consists "Hara_kiri_engraver"
33 \override StaffSymbol #'line-count = #1
34 drumStyleTable = #percussion-style
36 \context {
37 \Score
38 \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 5)
41 %% Notation Rules -------------------------------------------------%
42 \context {
43 \Score
44 \override TimeSignature #'style = #'()
45 \override SystemStartBracket #'collapse-height = #1
46 %\override SystemStartBrace #'collapse-height = #1
47 \override PaperColumn #'keep-inside-line = ##t
48 \override NonMusicalPaperColumn #'keep-inside-line = ##t
49 autoBeamSettings = #modern-auto-beam-settings
50 autoAccidentals = #modern-accidentals-style
51 autoCautionaries = #modern-cautionaries-style
52 extraNatural = ##f
53 ignoreMelismata = ##t
54 tieWaitForNote = ##f %% uglier, but safer
57 %% Text inclusion -------------------------------------------------%
58 \context {
59 \type "Engraver_group"
60 \name "TopLine"
61 \consists "Output_property_engraver"
62 \consists "Axis_group_engraver"
63 \consists "Script_engraver"
64 \consists "New_dynamic_engraver"
65 \consists "Dynamic_engraver"
66 \consists "Text_engraver"
67 \consists "Text_spanner_engraver"
68 \consists "Metronome_mark_engraver"
69 \consists "Time_signature_engraver"
70 \override VerticalAxisGroup #'minimum-Y-extent = #'(-0 . 0 )
72 \context {
73 \Score
74 \remove "Metronome_mark_engraver"
75 \accepts "TopLine"
76 \override RehearsalMark #'side-axis = #Y
77 \override RehearsalMark #'direction = #UP
78 \override RehearsalMark #'outside-staff-priority = #900
79 \override RehearsalMark #'self-alignment-X = #left
80 \override MetronomeMark #'side-axis = #Y
81 \override MetronomeMark #'direction = #DOWN
82 \override TextScript #'outside-staff-priority = #900
83 \override TextSpanner #'outside-staff-priority = #1000
85 \context {
86 \Lyrics
87 \remove "Instrument_name_engraver"
88 \override LyricSpace #'minimum-distance = #0.9
91 %% Look and feel --------------------------------------------------%
92 \context {
93 \Score
94 \override Accidental #'minimum-X-extent = #'(-0.2 . 0 )
95 \override BarLine #'hair-thickness = #1.2
96 \override OttavaBracket #'dash-fraction = #0.3
97 \override OttavaBracket #'dash-period = #0.9
98 \override TextSpanner #'dash-fraction = #0.3
99 \override TextSpanner #'dash-period = #0.9
100 \override LyricText #'self-alignment-X = #-0.5
101 markFormatter = #format-mark-box-letters
102 subdivideBeams = ##t
103 beatLength = #(ly:make-moment 1 8)
105 \context {
106 \Voice
107 \override Arpeggio #'arpeggio-direction = #UP
110 %% Vocal score layout --------------------------------------------%
111 \context {
112 \Staff
113 \type "Engraver_group"
114 \name "StaffUp"
115 \alias Staff
116 \override VerticalAxisGroup #'minimum-Y-extent = #'(-3 . 5)
117 \override StaffSymbol #'staff-space = #(magstep -1)
118 fontSize = #-1
120 \context {
121 \StaffUp
122 \type "Engraver_group"
123 \name "StaffDown"
124 \alias Staff
125 \override VerticalAxisGroup #'minimum-Y-extent = #'(-5 . 3)
127 \context {
128 \type "Engraver_group"
129 \name "Dynamics"
130 \alias Voice
131 \consists "Output_property_engraver"
132 \consists "Axis_group_engraver"
133 \consists "New_dynamic_engraver"
134 \consists "Skip_event_swallow_translator"
135 \consists "Piano_pedal_engraver"
136 \consists "Bar_engraver"
137 \override BarLine #'transparent = ##t
138 \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
139 \override TextScript #'font-size = #2
140 \override TextScript #'font-shape = #'italic
141 \override DynamicText #'extra-offset = #'(0 . 2.5)
142 \override Hairpin #'extra-offset = #'(0 . 2.5)
143 pedalSustainStrings = #'("Ped." "*Ped." "*")
144 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
146 \context {
147 \Staff
148 \type "Engraver_group"
149 \name "StaffPiano"
150 \alias Staff
151 \override VerticalAxisGroup #'minimum-Y-extent = #'(-4 . 4)
152 \override StaffSymbol #'staff-space = #(magstep -1)
153 fontSize = #-1
155 \context { \PianoStaff
156 \accepts "StaffUp"
157 \accepts "Dynamics"
158 \accepts "StaffDown"
159 \accepts "StaffPiano"
160 connectArpeggios = ##t % to avoid collisions with pianoDynamics
162 \context {
163 \Score
164 \override RehearsalMark #'font-size = #4
165 %\override TimeSignature #'X-extent = #'(0 . 2)
167 %%-----------------------------------------------------------------%
171 %%%%%%%%%%%%%%%%%%%%%%%%% Libretto Layout %%%%%%%%%%%%%%%%%%%%%%%%%%
173 includeLivretLayout = \layout {
174 indent = 2.0\cm
176 %% Special contexts ----------------------------------------------%
177 \context {
178 \ChoirStaff
179 \remove "System_start_delimiter_engraver"
180 \override SystemStartBar #'stencil = ##f
182 \context {
183 \Staff
184 \remove "Accidental_engraver"
185 \remove "Rest_collision_engraver"
186 \remove "Ledger_line_engraver"
187 \remove "Time_signature_engraver"
188 \remove "Key_engraver"
189 \remove "Clef_engraver"
190 \remove "Ottava_spanner_engraver"
191 \remove "Bar_engraver"
192 \remove "Instrument_name_engraver"
193 \override StaffSymbol #'line-count = #1
194 \override StaffSymbol #'color = #(rgb-color 0.9 0.9 0.9)
195 \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1 )
196 %\consists "Hara_kiri_engraver"
197 %\override VerticalAxisGroup #'remove-empty = ##t
199 \context {
200 \Voice
201 \remove "Grace_engraver"
202 \remove "Tuplet_engraver"
203 \remove "Tie_engraver"
204 \remove "Slur_engraver"
205 \remove "Phrasing_slur_engraver"
206 \remove "Script_engraver"
207 \remove "Dynamic_engraver"
208 \remove "New_dynamic_engraver"
209 \remove "Grace_beam_engraver"
210 \remove "Beam_engraver"
211 \remove "Stem_engraver"
212 \remove "Rest_engraver"
213 \remove "Dots_engraver"
214 \remove "Note_heads_engraver"
215 \remove "Breathing_sign_engraver"
216 \remove "Glissando_engraver"
217 \remove "Trill_spanner_engraver"
218 \remove "Text_engraver"
219 \remove "Text_spanner_engraver"
220 \remove "Multi_measure_rest_engraver"
221 \remove "Arpeggio_engraver"
222 \remove "Pitched_trill_engraver"
224 \context {
225 \Score
226 \override SystemStartBar #'stencil = ##f
229 %% Text inclusion -------------------------------------------------%
230 \context {
231 \type "Engraver_group"
232 \name "TopLine"
233 \consists "Output_property_engraver"
234 \consists "Axis_group_engraver"
236 \context {
237 \Score
238 \remove "Metronome_mark_engraver"
239 \accepts "TopLine"
240 \override PaperColumn #'keep-inside-line = ##t
241 \override NonMusicalPaperColumn #'keep-inside-line = ##t
242 \override RehearsalMark #'side-axis = #Y
243 \override RehearsalMark #'direction = #DOWN
244 \override RehearsalMark #'outside-staff-priority = #900
245 \override RehearsalMark #'self-alignment-X = #left
246 \override MetronomeMark #'side-axis = #Y
247 \override MetronomeMark #'direction = #DOWN
248 \override TextScript #'outside-staff-priority = #900
249 \override TextSpanner #'outside-staff-priority = #1000
250 \override TextSpanner #'direction = #DOWN
253 \context {
254 \Lyrics
255 \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1 )
256 \override InstrumentName #'font-family = #'sans
257 \override InstrumentName #'font-series = #'bold
258 \override InstrumentName #'extra-X-extent = #'(0 . 2 )
259 \override InstrumentName #'extra-X-extent = #'(-1 . 1 )
262 %% Additional tweaks ---------------------------------------------%
263 \context {
264 \Score
265 \override BarNumber #'transparent = ##t
267 %%-----------------------------------------------------------------%