-\version "2.1.29"
+\version "2.7.39"
\header {
texidoc = "The notation problem, creating a certain symbol,
is handled by plugins. Each plugin is called Engraver. In this example,
-engravers is switched on one by one, in the following order:
+engravers are switched on one by one, in the following order:
@itemize
@item note heads,
"
}
-\paper { raggedright = ##t }
+\layout { ragged-right = ##t }
-\include "engraver-example.lyinc"
+\include "engraver-example.ily"
%
% setup for Request->Element conversion. Guru-only
%
-MyStaffContext=\context {
- \type "Engraver_group_engraver"
+MyStaff =\context {
+ \type "Engraver_group"
\name Staff
\description "Handles clefs, bar lines, keys, accidentals. It can contain
\consists "Instrument_name_engraver"
\consists "Grob_pq_engraver"
\consists "Forbid_line_break_engraver"
- \consistsend "Axis_group_engraver"
+ \consists "Axis_group_engraver"
\consists "Pitch_squash_engraver"
- minimumVerticalExtent = #'(-6 . 6)
+ \override VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 6)
extraVerticalExtent = ##f
verticalExtent = ##f
localKeySignature = #'()
}
-MyVoiceContext = \context {
- \type "Engraver_group_engraver"
+MyVoice = \context {
+ \type "Engraver_group"
\name Voice
\description "
\score {
\topVoice
- \paper {
- \context { \MyStaffContext }
- \context { \MyVoiceContext }
+ \layout {
+ \context { \MyStaff }
+ \context { \MyVoice }
}
}
-MyStaffContext = \context {
- \MyStaffContext
+MyStaff = \context {
+ \MyStaff
\consists "Staff_symbol_engraver"
}
\score {
\topVoice
- \paper {
- \context { \MyStaffContext }
- \context { \MyVoiceContext }
+ \layout {
+ \context { \MyStaff }
+ \context { \MyVoice }
}
}
-MyStaffContext = \context {
- \MyStaffContext
+MyStaff = \context {
+ \MyStaff
\consists "Clef_engraver"
\remove "Pitch_squash_engraver"
}
\score {
\topVoice
- \paper {
- \context { \MyStaffContext }
- \context { \MyVoiceContext }
+ \layout {
+ \context { \MyStaff }
+ \context { \MyVoice }
}
}
-MyVoiceContext = \context {
- \MyVoiceContext
+MyVoice = \context {
+ \MyVoice
\consists "Stem_engraver"
}
\score {
\topVoice
- \paper {
- \context { \MyStaffContext }
- \context { \MyVoiceContext }
+ \layout {
+ \context { \MyStaff }
+ \context { \MyVoice }
}
}
-MyVoiceContext = \context {
- \MyVoiceContext
+MyVoice = \context {
+ \MyVoice
\consists "Beam_engraver"
}
\score {
\topVoice
- \paper {
- \context { \MyStaffContext }
- \context { \MyVoiceContext }
+ \layout {
+ \context { \MyStaff }
+ \context { \MyVoice }
}
}
-MyVoiceContext= \context {
- \MyVoiceContext
+MyVoice= \context {
+ \MyVoice
\consists "Phrasing_slur_engraver"
\consists "Slur_engraver"
\consists "Script_engraver"
\score {
\topVoice
- \paper {
- \context { \MyStaffContext }
- \context { \MyVoiceContext }
+ \layout {
+ \context { \MyStaff }
+ \context { \MyVoice }
}
}
-MyStaffContext = \context {
- \MyStaffContext
+MyStaff = \context {
+ \MyStaff
\consists "Bar_engraver"
\consists "Time_signature_engraver"
\score {
\topVoice
- \paper {
- \context { \MyStaffContext }
- \context { \MyVoiceContext }
+ \layout {
+ \context { \MyStaff }
+ \context { \MyVoice }
}
}
-MyStaffContext = \context
- { \MyStaffContext
- \consists "Accidental_engraver"
- \consists "Key_engraver"
+MyStaff = \context {
+ \MyStaff
+ \consists "Accidental_engraver"
+ \consists "Key_engraver"
}
\score {
\topVoice
- \paper {
- \context { \MyStaffContext }
- \context { \MyVoiceContext }
+ \layout {
+ \context { \MyStaff }
+ \context { \MyVoice }
}
}