1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
6 lsrtags = "contexts-and-engravers"
8 The notation problem, creating a certain symbol, is handled by plugins.
9 Each plugin is called an Engraver. In this example, engravers are
10 switched on one by one, in the following order:
24 - beams, slurs, accents,
27 - accidentals, bar lines, time signature, and key signature.
31 Engravers are grouped. For example, note heads, slurs, beams etc. form
32 a Voice context. Engravers for key, accidental, bar, etc. form a Staff
36 You may only see the first example in this document; please download
37 this snippet and run it from your own computer.
41 topVoice = \relative c' {
49 botVoice = \relative c' {
53 es16[-. es-. es-. fis-.]
78 % setup for Request->Element conversion. Guru-only
82 \type "Engraver_group"
85 \description "Handles clefs, bar lines, keys, accidentals. It can contain
86 @code{Voice} contexts."
89 \consists "Output_property_engraver"
91 \consists "Font_size_engraver"
93 \consists "Volta_engraver"
94 \consists "Separating_line_group_engraver"
95 \consists "Dot_column_engraver"
97 \consists "Ottava_spanner_engraver"
98 \consists "Rest_collision_engraver"
99 \consists "Piano_pedal_engraver"
100 \consists "Piano_pedal_align_engraver"
101 \consists "Instrument_name_engraver"
102 \consists "Grob_pq_engraver"
103 \consists "Forbid_line_break_engraver"
104 \consists "Axis_group_engraver"
106 \consists "Pitch_squash_engraver"
108 \override VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 6)
109 extraVerticalExtent = ##f
111 localKeySignature = #'()
113 % explicitly set instrument, so we don't get
114 % weird effects when doing instrument names for
117 instrumentName = #'()
118 shortInstrumentName = #'()
125 \type "Engraver_group"
129 Corresponds to a voice on a staff. This context handles the
130 conversion of dynamic signs, stems, beams, super- and subscripts,
131 slurs, ties, and rests.
133 You have to instantiate this explicitly if you want to have
134 multiple voices on the same staff."
136 localKeySignature = #'()
137 \consists "Font_size_engraver"
139 % must come before all
140 \consists "Output_property_engraver"
141 \consists "Arpeggio_engraver"
142 \consists "Multi_measure_rest_engraver"
143 \consists "Text_spanner_engraver"
144 \consists "Grob_pq_engraver"
145 \consists "Note_head_line_engraver"
146 \consists "Glissando_engraver"
147 \consists "Ligature_bracket_engraver"
148 \consists "Breathing_sign_engraver"
149 % \consists "Rest_engraver"
150 \consists "Grace_beam_engraver"
151 \consists "New_fingering_engraver"
152 \consists "Chord_tremolo_engraver"
153 \consists "Percent_repeat_engraver"
154 \consists "Slash_repeat_engraver"
157 Must come before text_engraver, but after note_column engraver.
160 \consists "Text_engraver"
161 \consists "Dynamic_engraver"
162 \consists "Fingering_engraver"
164 \consists "Script_column_engraver"
165 \consists "Rhythmic_column_engraver"
166 \consists "Cluster_spanner_engraver"
167 \consists "Tie_engraver"
168 \consists "Tie_engraver"
169 \consists "Tuplet_engraver"
170 \consists "Note_heads_engraver"
171 \consists "Rest_engraver"
173 \consists "Skip_event_swallow_translator"
180 \context { \MyStaff }
181 \context { \MyVoice }
188 \consists "Staff_symbol_engraver"
194 \context { \MyStaff }
195 \context { \MyVoice }
201 \consists "Clef_engraver"
202 \remove "Pitch_squash_engraver"
208 \context { \MyStaff }
209 \context { \MyVoice }
215 \consists "Stem_engraver"
221 \context { \MyStaff }
222 \context { \MyVoice }
228 \consists "Beam_engraver"
234 \context { \MyStaff }
235 \context { \MyVoice }
241 \consists "Phrasing_slur_engraver"
242 \consists "Slur_engraver"
243 \consists "Script_engraver"
250 \context { \MyStaff }
251 \context { \MyVoice }
257 \consists "Bar_engraver"
258 \consists "Time_signature_engraver"
264 \context { \MyStaff }
265 \context { \MyVoice }
271 \consists "Accidental_engraver"
272 \consists "Key_engraver"
277 \context { \MyStaff }
278 \context { \MyVoice }