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 %% Translation of GIT committish: f39a9724d9f51ed9d0d464689ef62f549d7b8dd6
10 Del problema central de la notación, esto es, crear un determinado
11 símbolo, se encargan los «plugins» o complementos añadidos. Cada
12 uno de los complementos se conoce como un grabador. En este
13 ejemplo, los grabadores se van activando uno por uno, en el orden
16 - cabeza de las notas,
18 - el símbolo del pentagrama,
24 - barras, ligaduras de expresión, acentos,
26 - alteraciones, líneas divisorias, indicación del compás, y armadura.
28 Los grabadores se encuentran agrupados. Por ejemplo, las cabezas
29 de nota, ligaduras de expresión, barras de corchea, etc. forman un
30 contexto de voz. Los grabadores de la armadura, alteraciones,
31 compás, etc. forman un contexto de pentagrama.
33 Sólo podemos ver el primer ejemplo en este documento; para ver los
34 demás debemos descartar el fragmento de código y procesarlo en
38 doctitlees = "Los grabadores, uno por uno"
41 The notation problem, creating a certain symbol, is handled by plugins.
42 Each plugin is called an Engraver. In this example, engravers are
43 switched on one by one, in the following order:
57 - beams, slurs, accents,
60 - accidentals, bar lines, time signature, and key signature.
64 Engravers are grouped. For example, note heads, slurs, beams etc. form
65 a Voice context. Engravers for key, accidental, bar, etc. form a Staff
69 You may only see the first example in this document; please download
70 this snippet and run it from your own computer.
73 doctitle = "Engravers one-by-one"
77 topVoice = \relative c' {
85 botVoice = \relative c' {
89 es16[-. es-. es-. fis-.]
114 % setup for Request->Element conversion. Guru-only
118 \type "Engraver_group"
121 \description "Handles clefs, bar lines, keys, accidentals. It can contain
122 @code{Voice} contexts."
125 \consists "Output_property_engraver"
127 \consists "Font_size_engraver"
129 \consists "Volta_engraver"
130 \consists "Separating_line_group_engraver"
131 \consists "Dot_column_engraver"
133 \consists "Ottava_spanner_engraver"
134 \consists "Rest_collision_engraver"
135 \consists "Piano_pedal_engraver"
136 \consists "Piano_pedal_align_engraver"
137 \consists "Instrument_name_engraver"
138 \consists "Grob_pq_engraver"
139 \consists "Forbid_line_break_engraver"
140 \consists "Axis_group_engraver"
142 \consists "Pitch_squash_engraver"
144 \override VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 6)
145 extraVerticalExtent = ##f
147 localKeySignature = #'()
149 % explicitly set instrument, so we don't get
150 % weird effects when doing instrument names for
153 instrumentName = #'()
154 shortInstrumentName = #'()
161 \type "Engraver_group"
165 Corresponds to a voice on a staff. This context handles the
166 conversion of dynamic signs, stems, beams, super- and subscripts,
167 slurs, ties, and rests.
169 You have to instantiate this explicitly if you want to have
170 multiple voices on the same staff."
172 localKeySignature = #'()
173 \consists "Font_size_engraver"
175 % must come before all
176 \consists "Output_property_engraver"
177 \consists "Arpeggio_engraver"
178 \consists "Multi_measure_rest_engraver"
179 \consists "Text_spanner_engraver"
180 \consists "Grob_pq_engraver"
181 \consists "Note_head_line_engraver"
182 \consists "Glissando_engraver"
183 \consists "Ligature_bracket_engraver"
184 \consists "Breathing_sign_engraver"
185 % \consists "Rest_engraver"
186 \consists "Grace_beam_engraver"
187 \consists "New_fingering_engraver"
188 \consists "Chord_tremolo_engraver"
189 \consists "Percent_repeat_engraver"
190 \consists "Slash_repeat_engraver"
193 Must come before text_engraver, but after note_column engraver.
196 \consists "Text_engraver"
197 \consists "Dynamic_engraver"
198 \consists "Fingering_engraver"
200 \consists "Script_column_engraver"
201 \consists "Rhythmic_column_engraver"
202 \consists "Cluster_spanner_engraver"
203 \consists "Tie_engraver"
204 \consists "Tie_engraver"
205 \consists "Tuplet_engraver"
206 \consists "Note_heads_engraver"
207 \consists "Rest_engraver"
209 \consists "Skip_event_swallow_translator"
216 \context { \MyStaff }
217 \context { \MyVoice }
224 \consists "Staff_symbol_engraver"
230 \context { \MyStaff }
231 \context { \MyVoice }
237 \consists "Clef_engraver"
238 \remove "Pitch_squash_engraver"
244 \context { \MyStaff }
245 \context { \MyVoice }
251 \consists "Stem_engraver"
257 \context { \MyStaff }
258 \context { \MyVoice }
264 \consists "Beam_engraver"
270 \context { \MyStaff }
271 \context { \MyVoice }
277 \consists "Phrasing_slur_engraver"
278 \consists "Slur_engraver"
279 \consists "Script_engraver"
286 \context { \MyStaff }
287 \context { \MyVoice }
293 \consists "Bar_engraver"
294 \consists "Time_signature_engraver"
300 \context { \MyStaff }
301 \context { \MyVoice }
307 \consists "Accidental_engraver"
308 \consists "Key_engraver"
313 \context { \MyStaff }
314 \context { \MyVoice }