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 "Output_property_engraver"
94 \consists "Font_size_engraver"
96 \consists "Volta_engraver"
97 \consists "Separating_line_group_engraver"
98 \consists "Dot_column_engraver"
100 \consists "Ottava_spanner_engraver"
101 \consists "Rest_collision_engraver"
102 \consists "Piano_pedal_engraver"
103 \consists "Piano_pedal_align_engraver"
104 \consists "Instrument_name_engraver"
105 \consists "Grob_pq_engraver"
106 \consists "Forbid_line_break_engraver"
107 \consists "Axis_group_engraver"
109 \consists "Pitch_squash_engraver"
111 localAlterations = #'()
113 % explicitly set instrumentName, so we don't get
114 % weird effects when doing instrument names for
117 instrumentName = #'()
118 shortInstrumentName = #'()
121 \defaultchild "Voice"
126 \type "Engraver_group"
130 Corresponds to a voice on a staff. This context handles the
131 conversion of dynamic signs, stems, beams, super- and subscripts,
132 slurs, ties, and rests.
134 You have to instantiate this explicitly if you want to have
135 multiple voices on the same staff."
137 localAlterations = #'()
138 \consists "Font_size_engraver"
140 % must come before all
141 \consists "Output_property_engraver"
142 \consists "Arpeggio_engraver"
143 \consists "Multi_measure_rest_engraver"
144 \consists "Text_spanner_engraver"
145 \consists "Grob_pq_engraver"
146 \consists "Note_head_line_engraver"
147 \consists "Glissando_engraver"
148 \consists "Ligature_bracket_engraver"
149 \consists "Breathing_sign_engraver"
150 % \consists "Rest_engraver"
151 \consists "Grace_beam_engraver"
152 \consists "New_fingering_engraver"
153 \consists "Chord_tremolo_engraver"
154 \consists "Percent_repeat_engraver"
155 \consists "Slash_repeat_engraver"
158 Must come before text_engraver, but after note_column engraver.
160 \consists "Text_engraver"
161 \consists "Dynamic_engraver"
162 \consists "Dynamic_align_engraver"
163 \consists "Fingering_engraver"
165 \consists "Script_column_engraver"
166 \consists "Rhythmic_column_engraver"
167 \consists "Cluster_spanner_engraver"
168 \consists "Tie_engraver"
169 \consists "Tie_engraver"
170 \consists "Tuplet_engraver"
171 \consists "Note_heads_engraver"
172 \consists "Rest_engraver"
179 \context { \MyStaff }
180 \context { \MyVoice }
187 \consists "Staff_symbol_engraver"
193 \context { \MyStaff }
194 \context { \MyVoice }
200 \consists "Clef_engraver"
201 \remove "Pitch_squash_engraver"
207 \context { \MyStaff }
208 \context { \MyVoice }
214 \consists "Stem_engraver"
220 \context { \MyStaff }
221 \context { \MyVoice }
227 \consists "Beam_engraver"
233 \context { \MyStaff }
234 \context { \MyVoice }
240 \consists "Phrasing_slur_engraver"
241 \consists "Slur_engraver"
242 \consists "Script_engraver"
249 \context { \MyStaff }
250 \context { \MyVoice }
256 \consists "Bar_engraver"
257 \consists "Time_signature_engraver"
263 \context { \MyStaff }
264 \context { \MyVoice }
270 \consists "Accidental_engraver"
271 \consists "Key_engraver"
276 \context { \MyStaff }
277 \context { \MyVoice }