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
156 %%-----------------------------------------------------------------%
160 %%%%%%%%%%%%%%%%%%%%%%%% Full Score Layout %%%%%%%%%%%%%%%%%%%%%%%%%
162 includeScoreLayout
= \layout {
167 \consists Note
_heads
_engraver
168 \consists Pitch
_squash
_engraver
169 squashedPosition
= #0
170 \override NoteHead
#'stencil
= #empty-stencil
175 \remove Time
_signature
_engraver
179 \remove Time
_signature
_engraver
180 \remove Axis
_group
_engraver
181 \override VerticalAxisGroup
#'remove-empty
= ##t
182 \consists Hara
_kiri
_engraver
186 \remove Time
_signature
_engraver
187 \remove Axis
_group
_engraver
188 \override VerticalAxisGroup
#'remove-empty
= ##t
189 \consists Hara
_kiri
_engraver
190 \override StaffSymbol
#'line-count
= #1
195 \consists Output
_property
_engraver
196 \consists Axis
_group
_engraver
197 \consists Text
_engraver
198 \consists Text
_spanner
_engraver
199 \consists Metronome
_mark
_engraver
200 \consists Time
_signature
_engraver
201 \override VerticalAxisGroup
#'minimum-Y-extent
= #'(-
0.4 . 1.2 )
202 \override MetronomeMark
#'side-axis
= #Y
203 \override MetronomeMark
#'direction
= #UP
209 \remove Metronome
_mark
_engraver
214 %%%%%%%%%%%%%%%%%%%%%%%%% Libretto Layout %%%%%%%%%%%%%%%%%%%%%%%%%%
216 includeLivretLayout
= \layout {
217 %% Special contexts ----------------------------------------------%
220 \remove System
_start
_delimiter
_engraver
221 \override SystemStartBar
#'stencil
= ##f
225 \remove Accidental
_engraver
226 \remove Rest
_collision
_engraver
227 \remove Ledger
_line
_engraver
228 \remove Time
_signature
_engraver
230 \remove Clef
_engraver
231 \remove Ottava
_spanner
_engraver
233 \remove Instrument
_name
_engraver
234 \override StaffSymbol
#'line-count
= #1
235 \override StaffSymbol
#'color
= #(rgb-color
0.9 0.9 0.9)
236 \override VerticalAxisGroup
#'minimum-Y-extent
= #'(-
1 . 1 )
237 %\consists Hara_kiri_engraver
238 %\override VerticalAxisGroup #'remove-empty = ##t
242 \remove Grace
_engraver
243 \remove Tuplet
_engraver
245 \remove Slur
_engraver
246 \remove Phrasing
_slur
_engraver
247 \remove Script
_engraver
248 \remove Dynamic
_engraver
249 \remove New
_dynamic
_engraver
250 \remove Grace
_beam
_engraver
251 \remove Beam
_engraver
252 \remove Stem
_engraver
253 \remove Rest
_engraver
254 \remove Dots
_engraver
255 \remove Note
_heads
_engraver
256 \remove Breathing
_sign
_engraver
257 \remove Glissando
_engraver
258 \remove Trill
_spanner
_engraver
259 \remove Text
_engraver
260 \remove Text
_spanner
_engraver
261 \remove Multi
_measure
_rest
_engraver
262 \remove Arpeggio
_engraver
263 \remove Pitched
_trill
_engraver
267 \override SystemStartBar
#'stencil
= ##f
270 %% Text inclusion -------------------------------------------------%
274 \consists Output
_property
_engraver
275 \consists Axis
_group
_engraver
279 \remove Metronome
_mark
_engraver
281 \override PaperColumn
#'keep-inside-line
= ##t
282 \override NonMusicalPaperColumn
#'keep-inside-line
= ##t
283 \override RehearsalMark
#'side-axis
= #Y
284 \override RehearsalMark
#'direction
= #DOWN
285 \override RehearsalMark
#'outside-staff-priority
= #900
286 \override RehearsalMark
#'self-alignment-X
= #left
287 \override MetronomeMark
#'side-axis
= #Y
288 \override MetronomeMark
#'direction
= #DOWN
289 \override TextScript
#'outside-staff-priority
= #900
290 \override TextSpanner
#'outside-staff-priority
= #1000
291 \override TextSpanner
#'direction
= #DOWN
296 \override VerticalAxisGroup
#'minimum-Y-extent
= #'(-
1 . 1 )
297 \override InstrumentName
#'font-family
= #'sans
298 \override InstrumentName
#'font-series
= #'bold
299 \override InstrumentName
#'extra-X-extent
= #'(0 . 2 )
300 \override InstrumentName
#'extra-X-extent
= #'(-
1 . 1 )
303 %% Additional tweaks ---------------------------------------------%
306 \override BarNumber
#'transparent
= ##t
308 %%-----------------------------------------------------------------%