]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/engravers-one-by-one.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / Documentation / snippets / engravers-one-by-one.ly
index 6f86e5d628b7bfda78110caa3b0b4b0670d61fb7..cc0d3781d54d812767bd86ca0ab10b7f0129d1da 100644 (file)
@@ -1,12 +1,14 @@
-%% Do not edit this file; it is automatically
-%% generated from LSR http://lsr.dsi.unimi.it
-%% This file is in the public domain.
-\version "2.13.4"
+% DO NOT EDIT this file manually; it is automatically
+% generated from Documentation/snippets/new
+% Make any changes in Documentation/snippets/new/
+% and then run scripts/auxiliar/makelsr.py
+%
+% This file is in the public domain.
+%% Note: this file works from version 2.13.52
+\version "2.14.0"
 
 \header {
-  lsrtags = "contexts-and-engravers"
-
-%% Translation of GIT committish: b2d4318d6c53df8469dfa4da09b27c15a374d0ca
+%% Translation of GIT committish: 59caa3adce63114ca7972d18f95d4aadc528ec3d
   texidoces = "
 Del problema central de la notación, esto es, crear un determinado
 símbolo, se encargan los «plugins» o complementos añadidos.  Cada
@@ -26,24 +28,23 @@ siguiente:
 
 - alteraciones, líneas divisorias, indicación del compás, y armadura.
 
-Los grabadores se encuentran agrupados. Por ejemplo, las cabezas
-de nota, ligaduras de expresión, barras de corchea, etc. forman un
-contexto de voz. Los grabadores de la armadura, alteraciones,
-compás, etc. forman un contexto de pentagrama.
-
-Sólo podemos ver el primer ejemplo en este documento; para ver los
-demás debemos descartar el fragmento de código y procesarlo en
-nuestro ordenador.
+Los grabadores se encuentran agrupados. Por ejemplo, las cabezas de
+nota, ligaduras de expresión, barras de corchea, etc. forman un
+contexto de voz, @code{Voice}. Los grabadores de la armadura,
+alteraciones, líneas de compás, etc. forman un contexto de pentagrama,
+@code{Staff}.
 
 "
-  doctitlees = "Los grabadores, uno por uno"
+  doctitlees = "Los grabadores uno por uno"
+
+  lsrtags = "contexts-and-engravers"
 
   texidoc = "
 The notation problem, creating a certain symbol, is handled by plugins.
-Each plugin is called an Engraver. In this example, engravers are
+ Each plugin is called an Engraver. In this example, engravers are
 switched on one by one, in the following order:
 
-- note heads
+- note heads,
 
 
 - staff symbol,
@@ -58,40 +59,38 @@ switched on one by one, in the following order:
 - beams, slurs, accents,
 
 
-- accidentals, bar lines, time signature, and key signature.
+- accidentals, bar lines, time signature and key signature.
 
 
 
 Engravers are grouped. For example, note heads, slurs, beams etc. form
-a Voice context. Engravers for key, accidental, bar, etc. form a Staff
-context.
-
-
-You may only see the first example in this document; please download
-this snippet and run it from your own computer.
+a @code{Voice} context. Engravers for key signature, accidentals, bar
+line, etc. form a @code{Staff} context.
 
 "
   doctitle = "Engravers one-by-one"
 } % begin verbatim
 
+
 %% sample music
-topVoice =  \relative c' {
-  \key d\major
+topVoice = \relative c' {
+  \key d \major
   es8([ g] a[ fis])
   b4
   b16[-. b-. b-. cis-.]
   d4->
-}
+} % begin verbatim
+
 
-botVoice =  \relative c' {
-  \key d\major
+botVoice = \relative c' {
+  \key d \major
   c8[( f] b[ a)]
   es4
   es16[-. es-. es-. fis-.]
   b4->
 }
 
-hoom =  \relative c {
+hoom = \relative c {
   \key d \major
   \clef bass
   g8-. r
@@ -102,7 +101,7 @@ hoom =  \relative c {
   b'4->
 }
 
-pah =  \relative c' {
+pah = \relative c' {
   r8 b-.
   r4
   r8 g8-.
@@ -115,14 +114,13 @@ pah =  \relative c' {
 % setup for Request->Element conversion. Guru-only
 %
 
-MyStaff =\context {
+MyStaff = \context {
   \type "Engraver_group"
   \name Staff
 
   \description "Handles clefs, bar lines, keys, accidentals.  It can contain
 @code{Voice} contexts."
 
-
   \consists "Output_property_engraver"
 
   \consists "Font_size_engraver"
@@ -142,14 +140,11 @@ MyStaff =\context {
 
   \consists "Pitch_squash_engraver"
 
-  \override VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 6)
-  extraVerticalExtent = ##f
-  verticalExtent = ##f
   localKeySignature = #'()
 
-                               % explicitly set instrument, so we don't get
-                               % weird effects when doing instrument names for
-                               % piano staves
+  % explicitly set instrumentName, so we don't get
+  % weird effects when doing instrument names for
+  % piano staves
 
   instrumentName = #'()
   shortInstrumentName = #'()
@@ -173,7 +168,7 @@ MyVoice = \context {
   localKeySignature = #'()
   \consists "Font_size_engraver"
 
-                               % must come before all
+  % must come before all
   \consists "Output_property_engraver"
   \consists "Arpeggio_engraver"
   \consists "Multi_measure_rest_engraver"
@@ -183,17 +178,16 @@ MyVoice = \context {
   \consists "Glissando_engraver"
   \consists "Ligature_bracket_engraver"
   \consists "Breathing_sign_engraver"
-                               % \consists "Rest_engraver"
+  % \consists "Rest_engraver"
   \consists "Grace_beam_engraver"
   \consists "New_fingering_engraver"
   \consists "Chord_tremolo_engraver"
   \consists "Percent_repeat_engraver"
   \consists "Slash_repeat_engraver"
 
-%{
-  Must come before text_engraver, but after note_column engraver.
-
-%}
+  %{
+    Must come before text_engraver, but after note_column engraver.
+  %}
   \consists "Text_engraver"
   \consists "Dynamic_engraver"
   \consists "Fingering_engraver"
@@ -206,8 +200,6 @@ MyVoice = \context {
   \consists "Tuplet_engraver"
   \consists "Note_heads_engraver"
   \consists "Rest_engraver"
-
-  \consists "Skip_event_swallow_translator"
 }
 
 
@@ -221,22 +213,22 @@ MyVoice = \context {
 
 
 MyStaff = \context {
-    \MyStaff
-    \consists "Staff_symbol_engraver"
+  \MyStaff
+  \consists "Staff_symbol_engraver"
 }
 
 \score {
   \topVoice
   \layout {
-      \context { \MyStaff }
-      \context { \MyVoice }
-            }
+    \context { \MyStaff }
+    \context { \MyVoice }
+  }
 }
 
 MyStaff = \context {
-    \MyStaff
-    \consists "Clef_engraver"
-    \remove "Pitch_squash_engraver"
+  \MyStaff
+  \consists "Clef_engraver"
+  \remove "Pitch_squash_engraver"
 }
 
 \score {
@@ -273,7 +265,7 @@ MyVoice = \context {
   }
 }
 
-MyVoice= \context {
+MyVoice = \context {
   \MyVoice
   \consists "Phrasing_slur_engraver"
   \consists "Slur_engraver"
@@ -316,4 +308,3 @@ MyStaff = \context {
   }
 }
 
-