1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.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 = "specific-notation, contexts-and-engravers"
12 %% Translation of GIT committish: b482c3e5b56c3841a88d957e0ca12964bd3e64fa
14 Del problema central de la notación, esto es, crear un determinado
15 símbolo, se encargan los «plugins» o complementos añadidos. Cada
16 uno de los complementos se conoce como un grabador. En este
17 ejemplo, los grabadores se van activando uno por uno, en el orden
20 - cabeza de las notas,
22 - el símbolo del pentagrama,
28 - barras, ligaduras de expresión, acentos,
30 - alteraciones, líneas divisorias, indicación del compás, y armadura.
32 Los grabadores se encuentran agrupados. Por ejemplo, las cabezas de
33 nota, ligaduras de expresión, barras de corchea, etc. forman un
34 contexto de voz, @code{Voice}. Los grabadores de la armadura,
35 alteraciones, líneas de compás, etc. forman un contexto de pentagrama,
39 doctitlees = "Los grabadores uno por uno"
42 The notation problem, creating a certain symbol, is handled by plugins.
43 Each plugin is called an Engraver. In this example, engravers are
44 switched on one by one, in the following order:
58 - beams, slurs, accents,
61 - accidentals, bar lines, time signature and key signature.
65 Engravers are grouped. For example, note heads, slurs, beams etc. form
66 a @code{Voice} context. Engravers for key signature, accidentals, bar
67 line, etc. form a @code{Staff} context.
70 doctitle = "Engravers one-by-one"
75 topVoice = \relative c' {
83 botVoice = \relative c' {
87 es16[-. es-. es-. fis-.]
112 % setup for Request->Element conversion. Guru-only
116 \type "Engraver_group"
119 \description "Handles clefs, bar lines, keys, accidentals. It can contain
120 @code{Voice} contexts."
122 \consists "Output_property_engraver"
124 \consists "Font_size_engraver"
126 \consists "Volta_engraver"
127 \consists "Separating_line_group_engraver"
128 \consists "Dot_column_engraver"
130 \consists "Ottava_spanner_engraver"
131 \consists "Rest_collision_engraver"
132 \consists "Piano_pedal_engraver"
133 \consists "Piano_pedal_align_engraver"
134 \consists "Instrument_name_engraver"
135 \consists "Grob_pq_engraver"
136 \consists "Forbid_line_break_engraver"
137 \consists "Axis_group_engraver"
139 \consists "Pitch_squash_engraver"
141 localKeySignature = #'()
143 % explicitly set instrumentName, so we don't get
144 % weird effects when doing instrument names for
147 instrumentName = #'()
148 shortInstrumentName = #'()
155 \type "Engraver_group"
159 Corresponds to a voice on a staff. This context handles the
160 conversion of dynamic signs, stems, beams, super- and subscripts,
161 slurs, ties, and rests.
163 You have to instantiate this explicitly if you want to have
164 multiple voices on the same staff."
166 localKeySignature = #'()
167 \consists "Font_size_engraver"
169 % must come before all
170 \consists "Output_property_engraver"
171 \consists "Arpeggio_engraver"
172 \consists "Multi_measure_rest_engraver"
173 \consists "Text_spanner_engraver"
174 \consists "Grob_pq_engraver"
175 \consists "Note_head_line_engraver"
176 \consists "Glissando_engraver"
177 \consists "Ligature_bracket_engraver"
178 \consists "Breathing_sign_engraver"
179 % \consists "Rest_engraver"
180 \consists "Grace_beam_engraver"
181 \consists "New_fingering_engraver"
182 \consists "Chord_tremolo_engraver"
183 \consists "Percent_repeat_engraver"
184 \consists "Slash_repeat_engraver"
187 Must come before text_engraver, but after note_column engraver.
189 \consists "Text_engraver"
190 \consists "Dynamic_engraver"
191 \consists "Fingering_engraver"
193 \consists "Script_column_engraver"
194 \consists "Rhythmic_column_engraver"
195 \consists "Cluster_spanner_engraver"
196 \consists "Tie_engraver"
197 \consists "Tie_engraver"
198 \consists "Tuplet_engraver"
199 \consists "Note_heads_engraver"
200 \consists "Rest_engraver"
207 \context { \MyStaff }
208 \context { \MyVoice }
215 \consists "Staff_symbol_engraver"
221 \context { \MyStaff }
222 \context { \MyVoice }
228 \consists "Clef_engraver"
229 \remove "Pitch_squash_engraver"
235 \context { \MyStaff }
236 \context { \MyVoice }
242 \consists "Stem_engraver"
248 \context { \MyStaff }
249 \context { \MyVoice }
255 \consists "Beam_engraver"
261 \context { \MyStaff }
262 \context { \MyVoice }
268 \consists "Phrasing_slur_engraver"
269 \consists "Slur_engraver"
270 \consists "Script_engraver"
277 \context { \MyStaff }
278 \context { \MyVoice }
284 \consists "Bar_engraver"
285 \consists "Time_signature_engraver"
291 \context { \MyStaff }
292 \context { \MyVoice }
298 \consists "Accidental_engraver"
299 \consists "Key_engraver"
304 \context { \MyStaff }
305 \context { \MyVoice }