1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
6 % This file is in the public domain.
7 %% Note: this file works from version 2.16.0
11 lsrtags = "contexts-and-engravers, specific-notation"
14 The notation problem, creating a certain symbol, is handled by plugins.
15 Each plugin is called an Engraver. In this example, engravers are
16 switched on one by one, in the following order:
30 - beams, slurs, accents,
33 - accidentals, bar lines, time signature and key signature.
37 Engravers are grouped. For example, note heads, slurs, beams etc. form
38 a @code{Voice} context. Engravers for key signature, accidentals, bar
39 line, etc. form a @code{Staff} context.
42 doctitle = "Engravers one-by-one"
47 topVoice = \relative c' {
55 botVoice = \relative c' {
59 es16[-. es-. es-. fis-.]
84 % setup for Request->Element conversion. Guru-only
88 \type "Engraver_group"
91 \description "Handles clefs, bar lines, keys, accidentals. It can contain
92 @code{Voice} contexts."
94 \consists "Output_property_engraver"
96 \consists "Font_size_engraver"
98 \consists "Volta_engraver"
99 \consists "Separating_line_group_engraver"
100 \consists "Dot_column_engraver"
102 \consists "Ottava_spanner_engraver"
103 \consists "Rest_collision_engraver"
104 \consists "Piano_pedal_engraver"
105 \consists "Piano_pedal_align_engraver"
106 \consists "Instrument_name_engraver"
107 \consists "Grob_pq_engraver"
108 \consists "Forbid_line_break_engraver"
109 \consists "Axis_group_engraver"
111 \consists "Pitch_squash_engraver"
113 localKeySignature = #'()
115 % explicitly set instrumentName, so we don't get
116 % weird effects when doing instrument names for
119 instrumentName = #'()
120 shortInstrumentName = #'()
123 \defaultchild "Voice"
128 \type "Engraver_group"
132 Corresponds to a voice on a staff. This context handles the
133 conversion of dynamic signs, stems, beams, super- and subscripts,
134 slurs, ties, and rests.
136 You have to instantiate this explicitly if you want to have
137 multiple voices on the same staff."
139 localKeySignature = #'()
140 \consists "Font_size_engraver"
142 % must come before all
143 \consists "Output_property_engraver"
144 \consists "Arpeggio_engraver"
145 \consists "Multi_measure_rest_engraver"
146 \consists "Text_spanner_engraver"
147 \consists "Grob_pq_engraver"
148 \consists "Note_head_line_engraver"
149 \consists "Glissando_engraver"
150 \consists "Ligature_bracket_engraver"
151 \consists "Breathing_sign_engraver"
152 % \consists "Rest_engraver"
153 \consists "Grace_beam_engraver"
154 \consists "New_fingering_engraver"
155 \consists "Chord_tremolo_engraver"
156 \consists "Percent_repeat_engraver"
157 \consists "Slash_repeat_engraver"
160 Must come before text_engraver, but after note_column engraver.
162 \consists "Text_engraver"
163 \consists "Dynamic_engraver"
164 \consists "Fingering_engraver"
166 \consists "Script_column_engraver"
167 \consists "Rhythmic_column_engraver"
168 \consists "Cluster_spanner_engraver"
169 \consists "Tie_engraver"
170 \consists "Tie_engraver"
171 \consists "Tuplet_engraver"
172 \consists "Note_heads_engraver"
173 \consists "Rest_engraver"
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 }