Merge git://repo.or.cz/opera_libre
[opera_libre.git] / definitions / settings.ly
blob52d3d9856c6d5d64c7994bc2065535bec8e187d8
1 %------------------------------------------------------------------%
2 % Opéra Libre -- settings.ly %
3 % %
4 % (c) Valentin Villenave, 2008 %
5 % %
6 %------------------------------------------------------------------%
8 %% Depends on: functions.ly
10 %%%%%%%%%%%%%%%%%%%%%%%%% Output options %%%%%%%%%%%%%%%%%%%%%%%%%%%
12 #(ly:set-option 'point-and-click #f)
13 #(ly:set-option 'delete-intermediate-files #t)
15 %%%%%%%%%%%%%%%%%%%%%%%%%% Common Layout %%%%%%%%%%%%%%%%%%%%%%%%%%%
17 %% Paper size -----------------------------------------------------%
18 % #(set-default-paper-size "a4" 'landscape)
20 %% Page breaking --------------------------------------------------%
21 #(define page-breaking ly:minimal-breaking)
23 %% Staff size -----------------------------------------------------%
24 #(set-global-staff-size 14)
26 \layout {
27 %% Spacing Variables ----------------------------------------------%
28 indent = 2.0\cm
29 \context {
30 \Staff
31 \remove Axis_group_engraver
32 \consists Hara_kiri_engraver
33 \override Beam #'auto-knee-gap = #'()
34 \override VerticalAxisGroup #'remove-empty = ##t
37 %% Notation Rules -------------------------------------------------%
38 \context {
39 \Score
40 \override TrillPitchAccidental #'avoid-slur = #'inside
41 \override TimeSignature #'style = #'()
42 \override SystemStartBracket #'collapse-height = #1
43 %\override SystemStartBrace #'collapse-height = #1
44 \override PaperColumn #'keep-inside-line = ##t
45 \override NonMusicalPaperColumn #'keep-inside-line = ##t
46 autoBeamSettings = #modern-auto-beam-settings
47 autoAccidentals = #modern-accidentals-style
48 autoCautionaries = #modern-cautionaries-style
49 extraNatural = ##f
50 ignoreMelismata = ##t
51 tieWaitForNote = ##f %% uglier, but safer
54 %% Text inclusion -------------------------------------------------%
55 \context {
56 \type Engraver_group
57 \name TextLine
58 \consists Output_property_engraver
59 \consists Axis_group_engraver
60 \consists Mark_engraver
61 \override RehearsalMark #'side-axis = #Y
62 \override RehearsalMark #'direction = #DOWN
63 \override RehearsalMark #'outside-staff-priority = #1100
65 \context {
66 \Lyrics
67 \remove Instrument_name_engraver
68 \override LyricSpace #'minimum-distance = #0.9
70 \context {
71 \Score
72 \remove Mark_engraver
73 \remove Metronome_mark_engraver
74 \override RehearsalMark #'side-axis = #Y
75 \override RehearsalMark #'direction = #UP
76 \override RehearsalMark #'outside-staff-priority = #900
77 \override RehearsalMark #'self-alignment-X = #left
78 \override TextScript #'outside-staff-priority = #900
79 \override TextSpanner #'outside-staff-priority = #1000
80 \override RehearsalMark #'font-size = #4
81 %\override TimeSignature #'X-extent = #'(0 . 2)
84 %% Look and feel --------------------------------------------------%
85 \context {
86 \Score
87 \override Accidental #'minimum-X-extent = #'(-0.2 . 0 )
88 \override BarLine #'hair-thickness = #1.2
89 \override OttavaBracket #'dash-fraction = #0.3
90 \override OttavaBracket #'dash-period = #0.9
91 \override TextSpanner #'dash-fraction = #0.3
92 \override TextSpanner #'dash-period = #0.9
93 \override LyricText #'self-alignment-X = #-0.5
94 \override DynamicText #'self-alignment-X = #-.4
95 markFormatter = #format-mark-box-letters
96 subdivideBeams = ##t
97 beatLength = #(ly:make-moment 1 8)
102 %%%%%%%%%%%%%%%%%%%%%%%% Vocal Score Layout %%%%%%%%%%%%%%%%%%%%%%%%
104 includeVocalLayout = \layout {
105 %% Vocal score layout --------------------------------------------%
106 \context {
107 \TextLine
108 \name TopLine
109 \consists Metronome_mark_engraver
110 \override MetronomeMark #'side-axis = #Y
111 \override MetronomeMark #'direction = #DOWN
112 \override MetronomeMark #'outside-staff-priority = #1900
114 \context {
115 \Staff
116 \consists Staff_collecting_engraver
118 \context {
119 \Staff
120 \type Engraver_group
121 \name StaffPiano
122 \alias Staff
123 \override VerticalAxisGroup #'remove-empty = ##f
124 \override VerticalAxisGroup #'minimum-Y-extent = #'(-4 . 4)
125 \override StaffSymbol #'staff-space = #(magstep -1)
126 fontSize = #-1
128 \context {
129 \PianoStaff
130 \accepts StaffPiano
131 connectArpeggios = ##t
133 \context {
134 \Score
135 \accepts TopLine
136 \remove Staff_collecting_engraver
140 %%%%%%%%%%%%%%%%%%%%%%%%%%% Parts Layout %%%%%%%%%%%%%%%%%%%%%%%%%%%
142 includePartsLayout = \layout {
143 %% Individual parts layout ----------------------------------------%
144 \context {
145 \Voice
146 \type Engraver_group
147 \name GhostVoice
148 \remove Multi_measure_rest_engraver
149 \remove Rest_engraver
150 \consists Metronome_mark_engraver
152 \context {
153 \Staff
154 %%% It's silly to keep printing the instrument name in
155 %%% separate parts; however some instruments (clarinets, etc)
156 %%% may need it.
157 %\remove Instrument_name_engraver
159 \context {
160 \Score
161 %\consists Mark_engraver
162 \accepts GhostVoice
163 skipBars = ##t
165 %%-----------------------------------------------------------------%
169 %%%%%%%%%%%%%%%%%%%%%%%% Full Score Layout %%%%%%%%%%%%%%%%%%%%%%%%%
171 includeScoreLayout = \layout {
172 \context {
173 \name PseudoVoice
174 \alias Voice
175 \type Engraver_group
176 \consists Note_heads_engraver
177 \consists Pitch_squash_engraver
178 squashedPosition = #0
179 \override NoteHead #'stencil = #empty-stencil
181 \context {
182 \Staff
183 \accepts PseudoVoice
184 \remove Time_signature_engraver
186 \context {
187 \RhythmicStaff
188 \remove Time_signature_engraver
189 \remove Axis_group_engraver
190 \override VerticalAxisGroup #'remove-empty = ##t
191 \consists Hara_kiri_engraver
193 \context {
194 \DrumStaff
195 \remove Time_signature_engraver
196 \remove Axis_group_engraver
197 \override VerticalAxisGroup #'remove-empty = ##t
198 \consists Hara_kiri_engraver
199 \override StaffSymbol #'line-count = #1
201 \context {
202 \type Engraver_group
203 \name TopLine
204 \consists Output_property_engraver
205 \consists Axis_group_engraver
206 \consists Text_engraver
207 \consists Text_spanner_engraver
208 \consists Metronome_mark_engraver
209 \consists Time_signature_engraver
210 \override VerticalAxisGroup #'minimum-Y-extent = #'(-0.4 . 1.2 )
211 \override MetronomeMark #'side-axis = #Y
212 \override MetronomeMark #'direction = #UP
214 \context {
215 \Score
216 \accepts TopLine
217 %\accepts TextLine
218 \remove Metronome_mark_engraver
223 %%%%%%%%%%%%%%%%%%%%%%%%% Libretto Layout %%%%%%%%%%%%%%%%%%%%%%%%%%
225 includeLivretLayout = \layout {
226 %% Special contexts ----------------------------------------------%
227 \context {
228 \ChoirStaff
229 \remove System_start_delimiter_engraver
230 \override SystemStartBar #'stencil = ##f
232 \context {
233 \Staff
234 \remove Accidental_engraver
235 \remove Rest_collision_engraver
236 \remove Ledger_line_engraver
237 \remove Time_signature_engraver
238 \remove Key_engraver
239 \remove Clef_engraver
240 \remove Ottava_spanner_engraver
241 \remove Bar_engraver
242 \remove Instrument_name_engraver
243 \override StaffSymbol #'line-count = #1
244 \override StaffSymbol #'color = #(rgb-color 0.9 0.9 0.9)
245 \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1 )
246 %\consists Hara_kiri_engraver
247 %\override VerticalAxisGroup #'remove-empty = ##t
249 \context {
250 \Voice
251 \remove Grace_engraver
252 \remove Tuplet_engraver
253 \remove Tie_engraver
254 \remove Slur_engraver
255 \remove Phrasing_slur_engraver
256 \remove Script_engraver
257 \remove Dynamic_engraver
258 \remove New_dynamic_engraver
259 \remove Grace_beam_engraver
260 \remove Beam_engraver
261 \remove Stem_engraver
262 \remove Rest_engraver
263 \remove Dots_engraver
264 \remove Note_heads_engraver
265 \remove Breathing_sign_engraver
266 \remove Glissando_engraver
267 \remove Trill_spanner_engraver
268 \remove Text_engraver
269 \remove Text_spanner_engraver
270 \remove Multi_measure_rest_engraver
271 \remove Arpeggio_engraver
272 \remove Pitched_trill_engraver
274 \context {
275 \Score
276 \override SystemStartBar #'stencil = ##f
279 %% Text inclusion -------------------------------------------------%
280 \context {
281 \type Engraver_group
282 \name TopLine
283 \consists Output_property_engraver
284 \consists Axis_group_engraver
286 \context {
287 \Score
288 \remove Metronome_mark_engraver
289 \accepts TopLine
290 \override PaperColumn #'keep-inside-line = ##t
291 \override NonMusicalPaperColumn #'keep-inside-line = ##t
292 \override RehearsalMark #'side-axis = #Y
293 \override RehearsalMark #'direction = #DOWN
294 \override RehearsalMark #'outside-staff-priority = #900
295 \override RehearsalMark #'self-alignment-X = #left
296 \override MetronomeMark #'side-axis = #Y
297 \override MetronomeMark #'direction = #DOWN
298 \override TextScript #'outside-staff-priority = #900
299 \override TextSpanner #'outside-staff-priority = #1000
300 \override TextSpanner #'direction = #DOWN
303 \context {
304 \Lyrics
305 \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1 )
306 \override InstrumentName #'font-family = #'sans
307 \override InstrumentName #'font-series = #'bold
308 \override InstrumentName #'extra-X-extent = #'(0 . 2 )
309 \override InstrumentName #'extra-X-extent = #'(-1 . 1 )
312 %% Additional tweaks ---------------------------------------------%
313 \context {
314 \Score
315 \override BarNumber #'transparent = ##t
317 %%-----------------------------------------------------------------%