1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
6 %% This file is in the public domain.
10 lsrtags = "contexts-and-engravers, specific-notation"
13 The notation problem, creating a certain symbol, is handled by plugins.
14 Each plugin is called an Engraver. In this example, engravers are
15 switched on one by one, in the following order:
29 - beams, slurs, accents,
32 - accidentals, bar lines, time signature and key signature.
36 Engravers are grouped. For example, note heads, slurs, beams etc. form
37 a @code{Voice} context. Engravers for key signature, accidentals, bar
38 line, etc. form a @code{Staff} context.
41 doctitle = "Engravers one-by-one"
45 topVoice = \relative c' {
53 botVoice = \relative c' {
57 es16[-. es-. es-. fis-.]
82 % setup for Request->Element conversion. Guru-only
86 \type "Engraver_group"
89 \description "Handles clefs, bar lines, keys, accidentals. It can contain
90 @code{Voice} contexts."
92 \consists "Font_size_engraver"
94 \consists "Volta_engraver"
95 \consists "Separating_line_group_engraver"
96 \consists "Dot_column_engraver"
98 \consists "Ottava_spanner_engraver"
99 \consists "Rest_collision_engraver"
100 \consists "Piano_pedal_engraver"
101 \consists "Piano_pedal_align_engraver"
102 \consists "Instrument_name_engraver"
103 \consists "Grob_pq_engraver"
104 \consists "Forbid_line_break_engraver"
105 \consists "Axis_group_engraver"
107 \consists "Pitch_squash_engraver"
109 localAlterations = #'()
111 % explicitly set instrumentName, so we don't get
112 % weird effects when doing instrument names for
115 instrumentName = #'()
116 shortInstrumentName = #'()
119 \defaultchild "Voice"
124 \type "Engraver_group"
128 Corresponds to a voice on a staff. This context handles the
129 conversion of dynamic signs, stems, beams, super- and subscripts,
130 slurs, ties, and rests.
132 You have to instantiate this explicitly if you want to have
133 multiple voices on the same staff."
135 localAlterations = #'()
136 \consists "Font_size_engraver"
138 % must come before all
139 \consists "Arpeggio_engraver"
140 \consists "Multi_measure_rest_engraver"
141 \consists "Text_spanner_engraver"
142 \consists "Grob_pq_engraver"
143 \consists "Note_head_line_engraver"
144 \consists "Glissando_engraver"
145 \consists "Ligature_bracket_engraver"
146 \consists "Breathing_sign_engraver"
147 % \consists "Rest_engraver"
148 \consists "Grace_beam_engraver"
149 \consists "New_fingering_engraver"
150 \consists "Chord_tremolo_engraver"
151 \consists "Percent_repeat_engraver"
152 \consists "Slash_repeat_engraver"
155 Must come before text_engraver, but after note_column engraver.
157 \consists "Text_engraver"
158 \consists "Dynamic_engraver"
159 \consists "Dynamic_align_engraver"
160 \consists "Fingering_engraver"
162 \consists "Script_column_engraver"
163 \consists "Rhythmic_column_engraver"
164 \consists "Cluster_spanner_engraver"
165 \consists "Tie_engraver"
166 \consists "Tie_engraver"
167 \consists "Tuplet_engraver"
168 \consists "Note_heads_engraver"
169 \consists "Rest_engraver"
176 \context { \MyStaff }
177 \context { \MyVoice }
184 \consists "Staff_symbol_engraver"
190 \context { \MyStaff }
191 \context { \MyVoice }
197 \consists "Clef_engraver"
198 \remove "Pitch_squash_engraver"
204 \context { \MyStaff }
205 \context { \MyVoice }
211 \consists "Stem_engraver"
217 \context { \MyStaff }
218 \context { \MyVoice }
224 \consists "Beam_engraver"
230 \context { \MyStaff }
231 \context { \MyVoice }
237 \consists "Phrasing_slur_engraver"
238 \consists "Slur_engraver"
239 \consists "Script_engraver"
246 \context { \MyStaff }
247 \context { \MyVoice }
253 \consists "Bar_engraver"
254 \consists "Time_signature_engraver"
260 \context { \MyStaff }
261 \context { \MyVoice }
267 \consists "Accidental_engraver"
268 \consists "Key_engraver"
273 \context { \MyStaff }
274 \context { \MyVoice }