]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/engraver-one-by-one.ly
* ly/declarations-init.ly (paper): Define page-breaking.
[lilypond.git] / input / test / engraver-one-by-one.ly
index 2bc69fe62e55dbfe9f0a80dfc63c5c9f2a8ec944..f80c2ff47030ef7355e8c63aacc7448e788e485e 100644 (file)
@@ -1,22 +1,22 @@
 
-\version "2.1.23"
+\version "2.1.30"
 \header {
     
-texidoc = "The notation problem, @emph{what} symbols to create,
+texidoc = "The notation problem, creating a certain symbol,
     is handled by plugins. Each plugin is called Engraver. In this example,
-  we switch on engravers  one by one, in the following order
+engravers is switched on one by one, in the following order:
 
 @itemize
-@item Note heads
-@item Staff symbol
-@item Clef
-@item Stem
-@item Beams, slurs, accents
-@item Accidentals, bar lines, time signature, and key signature.
+@item note heads,
+@item staff symbol,
+@item clef,
+@item stem,
+@item beams, slurs, accents,
+@item accidentals, bar lines, time signature, and key signature.
 @end itemize
 
 Engravers are grouped. For example, note heads, slurs, beams etc. form
-a Voice context. Engravers for key, accidental, bar, etc. form the
+a Voice context. Engravers for key, accidental, bar, etc. form a
 Staff context.
 
 "
@@ -31,7 +31,7 @@ Staff context.
 % setup for Request->Element conversion. Guru-only
 %
 
-MyStaffContext=\translator {
+MyStaffContext=\context {
        \type "Engraver_group_engraver"
        \name Staff
 
@@ -72,7 +72,7 @@ MyStaffContext=\translator {
 }
 
 
-MyVoiceContext = \translator {
+MyVoiceContext = \context {
        \type "Engraver_group_engraver"
        \name Voice
 
@@ -129,13 +129,13 @@ MyVoiceContext = \translator {
 \score {
   \topVoice
   \paper {
-      \translator { \MyStaffContext }
-      \translator { \MyVoiceContext }
+      \context { \MyStaffContext }
+      \context { \MyVoiceContext }
       }
 }
 
 
-MyStaffContext = \translator {
+MyStaffContext = \context {
     \MyStaffContext
     \consists "Staff_symbol_engraver"
 }
@@ -143,12 +143,12 @@ MyStaffContext = \translator {
 \score {
   \topVoice
   \paper {
-      \translator { \MyStaffContext }
-      \translator { \MyVoiceContext }
+      \context { \MyStaffContext }
+      \context { \MyVoiceContext }
             }
 }
 
-MyStaffContext = \translator {
+MyStaffContext = \context {
     \MyStaffContext
       \consists "Clef_engraver"
     \remove "Pitch_squash_engraver"
@@ -157,12 +157,12 @@ MyStaffContext = \translator {
 \score {
   \topVoice
   \paper {
-      \translator { \MyStaffContext }
-      \translator { \MyVoiceContext }
+      \context { \MyStaffContext }
+      \context { \MyVoiceContext }
             }
 }
 
-MyVoiceContext = \translator {
+MyVoiceContext = \context {
     \MyVoiceContext
     \consists "Stem_engraver"
     }
@@ -170,12 +170,12 @@ MyVoiceContext = \translator {
 \score {
   \topVoice
   \paper {
-      \translator { \MyStaffContext }
-      \translator { \MyVoiceContext }
+      \context { \MyStaffContext }
+      \context { \MyVoiceContext }
             }
 }
 
-MyVoiceContext = \translator {
+MyVoiceContext = \context {
     \MyVoiceContext
        \consists "Beam_engraver"
 }
@@ -183,12 +183,12 @@ MyVoiceContext = \translator {
 \score {
   \topVoice
   \paper {
-      \translator { \MyStaffContext }
-      \translator { \MyVoiceContext }
+      \context { \MyStaffContext }
+      \context { \MyVoiceContext }
             }
 }
 
-MyVoiceContext= \translator {
+MyVoiceContext= \context {
     \MyVoiceContext
     \consists "Phrasing_slur_engraver"
     \consists "Slur_engraver"
@@ -199,12 +199,12 @@ MyVoiceContext= \translator {
 \score {
   \topVoice
   \paper {
-      \translator { \MyStaffContext }
-      \translator { \MyVoiceContext }
+      \context { \MyStaffContext }
+      \context { \MyVoiceContext }
             }
 }
 
-MyStaffContext = \translator {
+MyStaffContext = \context {
     \MyStaffContext
  \consists "Bar_engraver"
     \consists "Time_signature_engraver"
@@ -214,12 +214,12 @@ MyStaffContext = \translator {
 \score {
   \topVoice
   \paper {
-      \translator { \MyStaffContext }
-      \translator { \MyVoiceContext }
+      \context { \MyStaffContext }
+      \context { \MyVoiceContext }
             }
 }
 
-MyStaffContext = \translator
+MyStaffContext = \context
  { \MyStaffContext
  \consists "Accidental_engraver"    
      \consists "Key_engraver"
@@ -227,7 +227,7 @@ MyStaffContext = \translator
 \score {
   \topVoice
   \paper {
-      \translator { \MyStaffContext }
-      \translator { \MyVoiceContext }
+      \context { \MyStaffContext }
+      \context { \MyVoiceContext }
             }
 }