1 %------------------------------------------------------------------%
2 % Opéra Libre -- settings.ly %
4 % (c) Valentin Villenave, 2008 %
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)
27 %% Spacing Variables ----------------------------------------------%
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 -------------------------------------------------%
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
51 tieWaitForNote
= ##f %% uglier, but safer
54 %% Text inclusion -------------------------------------------------%
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
67 \remove Instrument
_name
_engraver
68 \override LyricSpace
#'minimum-distance
= #0.9
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 --------------------------------------------------%
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
97 beatLength
= #(ly
:make-moment
1 8)
102 %%%%%%%%%%%%%%%%%%%%%%%% Vocal Score Layout %%%%%%%%%%%%%%%%%%%%%%%%
104 includeVocalLayout
= \layout {
105 %% Vocal score layout --------------------------------------------%
109 \consists Metronome
_mark
_engraver
110 \override MetronomeMark
#'side-axis
= #Y
111 \override MetronomeMark
#'direction
= #DOWN
112 \override MetronomeMark
#'outside-staff-priority
= #1900
116 \consists Staff
_collecting
_engraver
123 \override VerticalAxisGroup
#'remove-empty
= ##f
124 \override VerticalAxisGroup
#'minimum-Y-extent
= #'(-
4 . 4)
125 \override StaffSymbol
#'staff-space
= #(magstep -
1)
131 connectArpeggios
= ##t
136 \remove Staff
_collecting
_engraver
140 %%%%%%%%%%%%%%%%%%%%%%%%%%% Parts Layout %%%%%%%%%%%%%%%%%%%%%%%%%%%
142 includePartsLayout
= \layout {
143 %% Individual parts layout ----------------------------------------%
148 \remove Multi
_measure
_rest
_engraver
149 \remove Rest
_engraver
150 \consists Metronome
_mark
_engraver
154 %%% It's silly to keep printing the instrument name in
155 %%% separate parts; however some instruments (clarinets, etc)
157 %\remove Instrument_name_engraver
161 %\consists Mark_engraver
165 %%-----------------------------------------------------------------%
169 %%%%%%%%%%%%%%%%%%%%%%%% Full Score Layout %%%%%%%%%%%%%%%%%%%%%%%%%
171 includeScoreLayout
= \layout {
176 \consists Note
_heads
_engraver
177 \consists Pitch
_squash
_engraver
178 squashedPosition
= #0
179 \override NoteHead
#'stencil
= #empty-stencil
184 \remove Time
_signature
_engraver
188 \remove Time
_signature
_engraver
189 \remove Axis
_group
_engraver
190 \override VerticalAxisGroup
#'remove-empty
= ##t
191 \consists Hara
_kiri
_engraver
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
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
218 \remove Metronome
_mark
_engraver
223 %%%%%%%%%%%%%%%%%%%%%%%%% Libretto Layout %%%%%%%%%%%%%%%%%%%%%%%%%%
225 includeLivretLayout
= \layout {
226 %% Special contexts ----------------------------------------------%
229 \remove System
_start
_delimiter
_engraver
230 \override SystemStartBar
#'stencil
= ##f
234 \remove Accidental
_engraver
235 \remove Rest
_collision
_engraver
236 \remove Ledger
_line
_engraver
237 \remove Time
_signature
_engraver
239 \remove Clef
_engraver
240 \remove Ottava
_spanner
_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
251 \remove Grace
_engraver
252 \remove Tuplet
_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
276 \override SystemStartBar
#'stencil
= ##f
279 %% Text inclusion -------------------------------------------------%
283 \consists Output
_property
_engraver
284 \consists Axis
_group
_engraver
288 \remove Metronome
_mark
_engraver
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
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 ---------------------------------------------%
315 \override BarNumber
#'transparent
= ##t
317 %%-----------------------------------------------------------------%