X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fengraver-init.ly;h=7688912f6a205a86abc333f443a5232758003a63;hb=5a44d42908f7722f9f4a7675ec81325087c42e9a;hp=7e8383b7f7db06835e441f0af65f1a6839ec9e44;hpb=e94840e210c92c650bfa31abf71d4d8cc396a2f2;p=lilypond.git diff --git a/ly/engraver-init.ly b/ly/engraver-init.ly index 7e8383b7f7..7688912f6a 100644 --- a/ly/engraver-init.ly +++ b/ly/engraver-init.ly @@ -22,6 +22,8 @@ \consists "Separating_line_group_engraver" \consists "Font_size_engraver" \consists "Instrument_name_engraver" + + predefinedDiagramTable = #fretboard-table } \context { @@ -34,7 +36,6 @@ %% with empty ones. \consists "Font_size_engraver" - \consists "Volta_engraver" \consists "Separating_line_group_engraver" \consists "Dot_column_engraver" \consists "Staff_collecting_engraver" @@ -61,6 +62,7 @@ localKeySignature = #'() createSpacing = ##t ignoreFiguredBassRest = ##t + \override VerticalAxisGroup #'minimum-Y-extent = #'(-4 . 4) %% explicitly set instrument, so we don't get %% weird effects when doing instrument names for @@ -104,7 +106,7 @@ \context { \type "Engraver_group" - \name "InnerChoirStaff" + \name "ChoirStaff" \consists "System_start_delimiter_engraver" systemStartDelimiter = #'SystemStartBracket vocalName = #'() @@ -117,19 +119,11 @@ \accepts "PianoStaff" \accepts "Lyrics" \accepts "ChordNames" + \accepts "ChoirStaff" + \accepts "StaffGroup" \defaultchild "Staff" -} - -\context { - \InnerChoirStaff - \name ChoirStaff - - \defaultchild "Staff" - \accepts "InnerChoirStaff" - \accepts "InnerStaffGroup" \description "Identical to @code{StaffGroup} except that the contained staves are not connected vertically." - } \context{ @@ -152,7 +146,6 @@ contained staves are not connected vertically." \consists "Output_property_engraver" \consists "Font_size_engraver" - \consists "Volta_engraver" \consists "Separating_line_group_engraver" \consists "Dot_column_engraver" \consists "Bar_engraver" @@ -223,7 +216,9 @@ multiple voices on the same staff." \consists "Part_combine_engraver" \consists "Text_engraver" - \consists "Dynamic_engraver" + \consists "New_dynamic_engraver" + \consists "Dynamic_align_engraver" +% \consists "Dynamic_engraver" \consists "Fingering_engraver" \consists "Bend_engraver" @@ -250,6 +245,7 @@ multiple voices on the same staff." fontSize = #-4 \override Stem #'length-fraction = #(magstep -4) \override Beam #'length-fraction = #(magstep -4) + \override Beam #'thickness = #0.35 } \context { @@ -259,8 +255,6 @@ multiple voices on the same staff." \description "A voice on a percussion staff." \remove "Arpeggio_engraver" - \consists "Multi_measure_rest_engraver" - \consists "Text_spanner_engraver" \consists "Grob_pq_engraver" \remove "Note_head_line_engraver" @@ -273,7 +267,6 @@ multiple voices on the same staff." \remove "Fingering_engraver" \remove "Cluster_spanner_engraver" - \consists "Tuplet_engraver" \consists "Skip_event_swallow_translator" } @@ -292,6 +285,7 @@ contained staves are connected vertically." \consists "System_start_delimiter_engraver" systemStartDelimiter = #'SystemStartBrace + \defaultchild "Staff" \accepts "Staff" \accepts "FiguredBass" } @@ -301,11 +295,9 @@ contained staves are connected vertically." \name "PianoStaff" \alias "GrandStaff" - \description "Just like @code{GrandStaff} but with a forced -distance between the staves, so cross staff beaming and slurring -can be used." + \description "Just like @code{GrandStaff} but with support for +instrument names at the start of each system." - \override VerticalAxisGroup #'minimum-Y-extent = #'(-4 . 4) \consists "Instrument_name_engraver" instrumentName = #'() @@ -314,7 +306,7 @@ can be used." \context { \type "Engraver_group" - \name InnerStaffGroup + \name "StaffGroup" \consists "Span_bar_engraver" \consists "Span_arpeggio_engraver" @@ -332,24 +324,16 @@ can be used." \accepts "TabStaff" \accepts "Lyrics" \accepts "ChordNames" -} - -\context { - \InnerStaffGroup - \name StaffGroup + \accepts "FiguredBass" + \accepts "ChoirStaff" + \accepts "StaffGroup" \description "Groups staves while adding a bracket on the left side, grouping the staves together. The bar lines of the contained staves are connected vertically. @code{StaffGroup} only consists of a collection of staves, with a bracket in front and spanning bar lines." - - \accepts "InnerChoirStaff" - \accepts "ChoirStaff" - \accepts "InnerStaffGroup" - \accepts "FiguredBass" } - \context{ \type "Engraver_group" \override VerticalAxisGroup #'minimum-Y-extent = #'(-0.75 . 2.0) @@ -404,8 +388,6 @@ printing of a single line of lyrics." \type "Engraver_group" \name ChordNames \description "Typesets chord names." - - \consists "Volta_engraver" \consists "Rest_swallow_translator" \consists "Output_property_engraver" @@ -414,9 +396,7 @@ printing of a single line of lyrics." \consists "Skip_event_swallow_translator" \consists "Hara_kiri_engraver" % \consists "Note_spacing_engraver" - voltaOnThisStaff = ##f \override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 2) - \override SeparatingGroupSpanner #'padding = #0.8 \override VerticalAxisGroup #'remove-first = ##t \override VerticalAxisGroup #'remove-empty = ##t } @@ -465,7 +445,8 @@ automatically when an output definition (a @code{\score} or \consists "Default_bar_line_engraver" \consists "Output_property_engraver" \consists "System_start_delimiter_engraver" - \consists "Mark_engraver" + \consists "Mark_engraver" + \consists "Volta_engraver" \consists "Metronome_mark_engraver" \consists "Break_align_engraver" \consists "Spacing_engraver" @@ -509,10 +490,15 @@ automatically when an output definition (a @code{\score} or tieWaitForNote = ##f clefGlyph = #"clefs.G" clefPosition = #-2 + middleCClefPosition = #-6 middleCPosition = #-6 firstClef = ##t + + crescendoSpanner = #'hairpin + decrescendoSpanner = #'hairpin defaultBarType = #"|" + doubleRepeatType = #":|:" barNumberVisibility = #first-bar-number-invisible automaticBars = ##t @@ -520,6 +506,8 @@ automatically when an output definition (a @code{\score} or explicitKeySignatureVisibility = #all-visible implicitTimeSignatureVisibility = #end-of-line-invisible + repeatCountVisibility = #all-repeat-counts-visible + autoBeamSettings = #default-auto-beam-settings autoBeaming = ##t autoBeamCheck = #default-auto-beam-check @@ -542,12 +530,13 @@ automatically when an output definition (a @code{\score} or stringNumberOrientations = #'(up down) strokeFingerOrientations = #'(right) + lyricMelismaAlignment = #LEFT markFormatter = #format-mark-letters rehearsalMark = #1 subdivideBeams = ##f allowBeamBreak = ##f extraNatural = ##t - autoAccidentals = #'(Staff (same-octave . 0)) + autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0)) autoCautionaries = #'() printKeyCancellation = ##t @@ -574,7 +563,8 @@ automatically when an output definition (a @code{\score} or bassStaffProperties = #'((assign clefGlyph "clefs.F") (assign clefPosition 2) - (assign middleCPosition 6)) + (assign middleCPosition 6) + (assign middleCClefPosition 6)) %% tablature: stringOneTopmost = ##t highStringOne = ##t @@ -600,16 +590,20 @@ automatically when an output definition (a @code{\score} or (Voice Beam thickness 0.384) (Voice Beam length-fraction 0.8) (Voice Accidental font-size -4) + (Voice AccidentalCautionary font-size -4) (Voice Slur direction ,DOWN) + (Voice Script font-size -3) ) keepAliveInterfaces = #'( rhythmic-grob-interface lyric-interface + percent-repeat-item-interface + percent-repeat-interface ;; need this, as stanza numbers are items, and appear only once. stanza-number-interface - percent-repeat-interface) + ) quotedEventTypes = #'( note-event rest-event @@ -619,8 +613,6 @@ automatically when an output definition (a @code{\score} or instrumentTransposition = #(ly:make-pitch 0 0 0) verticallySpacedContexts = #'(Staff) - - hairpinToBarline = ##t timing = ##t } @@ -713,15 +705,15 @@ context." clefPosition = #0 } -%% TODO: Gregorian Chant contexts should be moved to gregorian-init.ly, +%% TODO: Gregorian Chant contexts should be moved to gregorian.ly, %% but this does not work (is this a bug or intended behaviour?): %% %% If I try to do so, I get "error: unknown escaped string: %% `\VaticanaStaff'" in params-init.ly. If I also move %% "\context { \Vaticana*Context }" from params-init.ly to the end -%% of gregorian-init.ly, then I get "error: parse error, unexpected +%% of gregorian.ly, then I get "error: parse error, unexpected %% TRANSLATOR: \context { \VaticanaStaff }" in -%% gregorian-init.ly. --jr +%% gregorian.ly. --jr \context { \Voice @@ -748,14 +740,10 @@ of Editio Vaticana." %% Prepare TextSpanner for \episem{Initium|Finis} use. %% - %% N.B.: dash-fraction MUST be unset; otherwise, TextSpanner will - %% always produce dashed lines, regardless of the style property. - %% %% FIXME: The line @code{\override TextSpanner #'padding = #-0.1} is %% required to force the articulation signs being placed vertically %% tightly to the correpsonding note heads. %% - \override TextSpanner #'dash-fraction = #'() \override TextSpanner #'style = #'line \override TextSpanner #'padding = #-0.1 } @@ -789,6 +777,7 @@ of Editio Vaticana." %% Choose vaticana do clef on 3rd line as default. clefGlyph = #"clefs.vaticana.do" middleCPosition = #1 + middleCClefPosition = #1 clefPosition = #1 clefOctavation = #0 @@ -889,6 +878,7 @@ accommodated for typesetting a piece in mensural style." %% Choose petrucci g clef on 2nd line as default. clefGlyph = #"clefs.petrucci.g" + middleCClefPosition = #-6 middleCPosition = #-6 clefPosition = #-2 clefOctavation = #0 @@ -904,7 +894,7 @@ accommodated for typesetting a piece in mensural style." %% Accidentals are valid only once (same as %% #(set-accidental-style 'forget)) extraNatural = ##f - autoAccidentals = #'(Staff (same-octave . -1)) + autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave -1)) autoCautionaries = #'() printKeyCancellation = ##f }