]> git.donarmstrong.com Git - lilypond.git/blobdiff - ly/engraver-init.ly
* scripts/convert-ly.py (FatalConversionError.subst_in_trans):
[lilypond.git] / ly / engraver-init.ly
index 5663553a91d1d736aec5cf8c5c84073a50c9adb5..08ac5604b3b35c3dcd7c137901dec53c235bfab9 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.19"
+\version "2.1.23"
 
 
 %
@@ -9,9 +9,6 @@
        \type "Engraver_group_engraver"
        \name Staff
 
-       \description "Handles clefs, bar lines, keys, accidentals.  It can contain
-@code{Voice} contexts."
-
        
        \consists "Output_property_engraver"    
        
@@ -23,8 +20,6 @@
 %      \consists "Repeat_engraver"
        \consists "Volta_engraver"
        \consists "Separating_line_group_engraver"      
-       SeparatingGroupSpanner \override #'spacing-procedure
-         =  #Separating_group_spanner::set_spacing_rods_and_seqs
        \consists "Dot_column_engraver"
 
        % perhaps move to Voice context?
@@ -56,6 +51,9 @@
        instr = #'()
          
        \accepts "Voice"
+       \description "Handles clefs, bar lines, keys, accidentals.  It can contain
+@code{Voice} contexts."
+
 }
 
 \translator {
 
     clefGlyph = #"clefs-percussion"
     clefPosition = #0
-    Script \set #'staff-padding = #0.75 
+    \override Script #'staff-padding = #0.75 
 }
 
 
-\translator {
-    \type Engraver_group_engraver
-    \consists "Axis_group_engraver"
-    minimumVerticalExtent = ##f
-    extraVerticalExtent = ##f
-    verticalExtent = ##f 
-    localKeySignature = #'()
-
-    \accepts Staff
-    \name StaffContainer
-}
-
 \translator {
     \type "Engraver_group_engraver"
     \name InnerChoirStaff
     \accepts "RhythmicStaff"
     \accepts "GrandStaff"
     \accepts "PianoStaff"
-    \accepts "LyricsVoice"
+    \accepts "Lyrics"
     \accepts "ChordNames"
 }
 
        \InnerChoirStaffContext
        \name ChoirStaff
        
+       \accepts "InnerChoirStaff"
+       \accepts "InnerStaffGroup"
        \description "Identical to @code{StaffGroup} except that the
     contained staves are not connected vertically."
        
-       \accepts "InnerChoirStaff"
-       \accepts "InnerStaffGroup"
 }
 
 
     
     \consists "Output_property_engraver"       
 
-    \description  "
-    A context like @code{Staff} but for printing rhythms.  Pitches are
-    ignored; the notes are printed on one line.  
-"
     minimumVerticalExtent = ##f
     extraVerticalExtent = ##f
     verticalExtent = ##f 
     \name RhythmicStaff
     \alias "Staff"
     
-    BarLine \override #'bar-size = #4
-    VoltaBracket \override #'minimum-space =  #15
-    VoltaBracket \override #'padding =  #5
-    StaffSymbol \override #'line-count = #1    
+    \override BarLine #'bar-size = #4
+    \override VoltaBracket #'minimum-space = #15
+    \override VoltaBracket #'padding = #5
+    \override StaffSymbol #'line-count = #1    
 
-    Stem \override #'neutral-direction = #1
-    Beam \override #'neutral-direction = #1    
+    \override Stem  #'neutral-direction = #1
+    \override Beam  #'neutral-direction = #1   
                                %       \consists "Repeat_engraver"
     \consists "Dot_column_engraver"
     \consists "Volta_engraver"
     \consists "Instrument_name_engraver"
     \consistsend "Axis_group_engraver"
     \accepts "Voice"
+    \description  "
+    A context like @code{Staff} but for printing rhythms.  Pitches are
+    ignored; the notes are printed on one line.  
+"
 }
 
 
     the staves, so cross staff beaming and slurring can be used."
     
     verticalAlignmentChildCallback = #Align_interface::fixed_distance_alignment_callback
-    VerticalAlignment \override #'forced-distance = #12
-    VerticalAlignment \override #'self-alignment-Y = #0
+    \override VerticalAlignment #'forced-distance = #12
+    \override VerticalAlignment #'self-alignment-Y = #0
 
     \consists "Vertical_align_engraver"
     \consists "Instrument_name_engraver"
     \accepts "GrandStaff"
     \accepts "PianoStaff"
     \accepts "TabStaff"        
-    \accepts "LyricsVoice"
+    \accepts "Lyrics"
     \accepts "ChordNames"
 }
 
@@ -335,7 +321,7 @@ connected vertically.  "
     \description " Corresponds to a voice with lyrics.  Handles the
 printing of a single line of lyrics.  "
     
-    \name LyricsVoice 
+    \name Lyrics 
     \consists "Separating_line_group_engraver"
     \consists "Lyric_engraver"
     \consists "Extender_engraver"
@@ -343,7 +329,7 @@ printing of a single line of lyrics.  "
     \consists "Stanza_number_engraver"
     \consists "Vocal_name_engraver"
     \consists "Skip_event_swallow_translator"
-    SeparationItem \set #'padding = #0.5
+    \override SeparationItem #'padding = #0.2
 }
 
 \translator {
@@ -378,7 +364,7 @@ printing of a single line of lyrics.  "
     
     minimumVerticalExtent = #'(0 . 2.5)
     extraVerticalExtent = ##f
-    SeparatingGroupSpanner \override #'padding = #0.8
+    \override SeparatingGroupSpanner #'padding = #0.8
     verticalExtent = ##f 
 }
 
@@ -387,7 +373,7 @@ RemoveEmptyStaffContext= \translator {
     \StaffContext
     \remove "Axis_group_engraver"
     \consistsend "Hara_kiri_engraver"
-    Beam \override #'auto-knee-gap = #'()
+    \override Beam #'auto-knee-gap = #'()
 }
 
 AncientRemoveEmptyStaffContext = \translator {
@@ -438,11 +424,10 @@ AncientRemoveEmptyStaffContext = \translator {
     \accepts "TabStaff"
     \accepts "VaticanaStaff"
     \accepts "GregorianTranscriptionStaff"
-    \accepts "StaffContainer"
     \accepts "StaffGroup"
     \accepts "RhythmicStaff"
     \accepts "DrumStaff"
-    \accepts "LyricsVoice"
+    \accepts "Lyrics"
     \accepts "ChordNames"
     \accepts "GrandStaff"
     \accepts "ChoirStaff"
@@ -471,7 +456,7 @@ AncientRemoveEmptyStaffContext = \translator {
     
     explicitClefVisibility = #all-visible
     explicitKeySignatureVisibility = #all-visible
-    autoBeamSettings = #default-auto-beam-settings
+    autoBeamSettings = #(cons default-auto-beam-settings '())
     autoBeaming = ##t
     scriptDefinitions = #default-script-alist
 
@@ -535,7 +520,7 @@ AncientRemoveEmptyStaffContext = \translator {
 
     %% One may change the strings tuning as following :
     %% The lenght of the list must be equal to the number of string
-    stringTunings   = #guitar-tunings
+    stringTunings = #guitar-tunings
     tablatureFormat = #fret-number-tablature-format
 
     %%
@@ -580,9 +565,9 @@ OrchestralScoreContext = \translator {
 
 EasyNotation = \translator {
        \ScoreContext
-       NoteHead \override #'molecule-callback = #Note_head::brew_ez_molecule
-       NoteHead \override #'Y-extent-callback = #'()
-       NoteHead \override #'X-extent-callback = #'()
+       \override NoteHead #'print-function = #Note_head::brew_ez_stencil
+       \override NoteHead #'Y-extent-callback = #'()
+       \override NoteHead #'X-extent-callback = #'()
 }
 
 
@@ -619,14 +604,14 @@ EasyNotation = \translator {
       \remove "New_fingering_engraver"
 
       \description "Context for drawing notes in a Tab staff. "
-      Slur \override #'font-family       = #'roman
-      Slur \override #'molecule-callback = #hammer-molecule-callback
-      Slur \override #'direction    = #-1
+      \override Slur #'font-family    = #'roman
+      \override Slur #'print-function = #hammer-print-function
+      \override Slur #'direction = #-1
 
       % Draws all stems/beams out of the staff (and not in the middle of the staff !)
       % This feature is now disabled because most of the tab does not use it.
-      %Beam \override #'damping = #100000
-      %Stem \override #'up-to-staff = ##t
+      %\override Beam #'damping = #100000
+      %\override Stem #'up-to-staff = ##t
 
       % No accidental in tablature !
       \remove Accidental_engraver
@@ -650,11 +635,11 @@ EasyNotation = \translator {
       \accepts "TabVoice"
       
       % 6 strings
-      StaffSymbol \override #'line-count  = #6
-      StaffSymbol \override #'staff-space = #1.5
+      \override StaffSymbol #'line-count = #6
+      \override StaffSymbol #'staff-space = #1.5
 
      % Don't draw stems over the tablature figures !
-      Stem \override #'avoid-note-head = ##t
+      \override Stem #'avoid-note-head = ##t
       
       % No accidental in tablature !
       \remove "Accidental_engraver"
@@ -687,21 +672,21 @@ EasyNotation = \translator {
   \consists "Vaticana_ligature_engraver"
 
   % Set default head for notes outside of \[ \].
-  NoteHead \set #'style = #'vaticana_punctum
+  \override NoteHead #'style = #'vaticana_punctum
 
   % Put some space before and after divisiones.
   % FIXME: This does not seem to show any effect.
-  Script \set #'padding = #0.5
+  \override Script #'padding = #0.5
 
   % There are no beams in Gregorian Chant notation.
   autobeaming = ##f
 
   % Prepare TextSpanner for \episem{Initium|Finis} use.
-  TextSpanner \set #'style = #'line
-  TextSpanner \set #'edge-height = #'(0 . 0)
-  TextSpanner \set #'padding = #0.5
-  TextSpanner \set #'enclose-bounds = #1
-  TextSpanner \set #'edge-text = #'("" . "")
+  \override TextSpanner #'style = #'line
+  \override TextSpanner #'edge-height = #'(0 . 0)
+  \override TextSpanner #'padding = #0.5
+  \override TextSpanner #'enclose-bounds = #1
+  \override TextSpanner #'edge-text = #'("" . "")
 }
 
 \translator {
@@ -718,13 +703,13 @@ EasyNotation = \translator {
   % We can not remove Bar_engraver; otherwise clefs and custodes will
   % not show up any more among other line breaking issues.
   % Instead, we make the grob transparent.
-  BarLine \set #'transparent = ##t
+  \override BarLine #'transparent = ##t
 
-  StaffSymbol \set #'line-count = #4
-  StaffSymbol \set #'thickness = #0.6
+  \override StaffSymbol #'line-count = #4
+  \override StaffSymbol #'thickness = #0.6
 
   % FIXME: unit on StaffSymbol's width should be \linewidth.
-  % StaffSymbol \set #'width = #60.0
+  % \override StaffSymbol #'width = #60.0
 
   % Choose vaticana do clef on 3rd line as default.
   clefGlyph = #"clefs-vaticana_do"
@@ -733,12 +718,12 @@ EasyNotation = \translator {
   clefOctavation = #0
 
   % Select vaticana style font.
-  KeySignature \set #'style = #'vaticana
-  Accidental \set #'style = #'vaticana
-  Custos \set #'style = #'vaticana
-  Custos \set #'neutral-position = #3
-  Custos \set #'neutral-direction = #-1
-  Custos \set #'adjust-if-on-staffline = ##t
+  \override KeySignature #'style = #'vaticana
+  \override Accidental #'style = #'vaticana
+  \override Custos #'style = #'vaticana
+  \override Custos #'neutral-position = #3
+  \override Custos #'neutral-direction = #-1
+  \override Custos #'adjust-if-on-staffline = ##t
 
   % Score.timing = ##f
   % Score.barAlways = ##t
@@ -753,21 +738,21 @@ EasyNotation = \translator {
   % other ligature engraver would cause a "Junking event: `LigatureEvent'"
   % warning for every "\[" and "\]".  Therefore, we make the grob
   % transparent instead.
-  LigatureBracket \set #'transparent = ##t
+  \override LigatureBracket #'transparent = ##t
 
   % Put some space before and after divisiones.
   % FIXME: This does not seem to show any effect.
-  Script \set #'padding = #0.5
+  \override Script #'padding = #0.5
 
   % There are no beams in Gregorian Chant notation.
   autobeaming = ##f
 
   % Prepare TextSpanner for \episem{Initium|Finis} use.
-  TextSpanner \set #'style = #'line
-  TextSpanner \set #'edge-height = #'(0 . 0)
-  TextSpanner \set #'padding = #0.5
-  TextSpanner \set #'enclose-bounds = #1
-  TextSpanner \set #'edge-text = #'("" . "")
+  \override TextSpanner #'style = #'line
+  \override TextSpanner #'edge-height = #'(0 . 0)
+  \override TextSpanner #'padding = #0.5
+  \override TextSpanner #'enclose-bounds = #1
+  \override TextSpanner #'edge-text = #'("" . "")
 }
  \translator {
   \StaffContext
@@ -779,5 +764,5 @@ EasyNotation = \translator {
   % We can not remove Bar_engraver; otherwise clefs and custodes will
   % not show up any more among other line breaking issues.
   % Instead, we make the grob transparent.
-  BarLine \set #'transparent = ##t
+  \override BarLine #'transparent = ##t
 }