1 %------------------------------------------------------------------%
2 % Opéra Libre -- layout.ly %
4 % (c) Valentin Villenave, 2008 %
6 %------------------------------------------------------------------%
8 %%%%%%%%%%%%%%%%%%%%%%%%%%% Score Layout %%%%%%%%%%%%%%%%%%%%%%%%%%%
10 includeLayout
= \layout {
11 %% Spacing Variables ----------------------------------------------%
15 \remove "Axis_group_engraver"
16 \consists "Hara_kiri_engraver"
17 \remove "Time_signature_engraver"
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"
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
38 \override VerticalAxisGroup
#'minimum-Y-extent
= #'(-
1 . 5)
41 %% Notation Rules -------------------------------------------------%
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
54 tieWaitForNote
= ##f %% uglier, but safer
57 %% Text inclusion -------------------------------------------------%
59 \type "Engraver_group"
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 )
74 \remove "Metronome_mark_engraver"
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
87 \remove "Instrument_name_engraver"
88 \override LyricSpace
#'minimum-distance
= #0.9
91 %% Look and feel --------------------------------------------------%
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
103 beatLength
= #(ly
:make-moment
1 8)
107 \override Arpeggio
#'arpeggio-direction
= #UP
110 %% Vocal score layout --------------------------------------------%
113 \type "Engraver_group"
116 \override VerticalAxisGroup
#'minimum-Y-extent
= #'(-
3 . 5)
117 \override StaffSymbol
#'staff-space
= #(magstep -
1)
122 \type "Engraver_group"
125 \override VerticalAxisGroup
#'minimum-Y-extent
= #'(-
5 . 3)
128 \type "Engraver_group"
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")
148 \type "Engraver_group"
151 \override VerticalAxisGroup
#'minimum-Y-extent
= #'(-
4 . 4)
152 \override StaffSymbol
#'staff-space
= #(magstep -
1)
155 \context { \PianoStaff
159 \accepts "StaffPiano"
160 connectArpeggios
= ##t
% to avoid collisions with pianoDynamics
164 \override RehearsalMark
#'font-size
= #4
165 %\override TimeSignature #'X-extent = #'(0 . 2)
167 %%-----------------------------------------------------------------%
171 %%%%%%%%%%%%%%%%%%%%%%%%% Libretto Layout %%%%%%%%%%%%%%%%%%%%%%%%%%
173 includeLivretLayout
= \layout {
176 %% Special contexts ----------------------------------------------%
179 \remove "System_start_delimiter_engraver"
180 \override SystemStartBar
#'stencil
= ##f
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
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"
226 \override SystemStartBar
#'stencil
= ##f
229 %% Text inclusion -------------------------------------------------%
231 \type "Engraver_group"
233 \consists "Output_property_engraver"
234 \consists "Axis_group_engraver"
238 \remove "Metronome_mark_engraver"
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
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 ---------------------------------------------%
265 \override BarNumber
#'transparent
= ##t
267 %%-----------------------------------------------------------------%