From: David Kastrup Date: Thu, 4 Apr 2013 09:12:38 +0000 (+0200) Subject: Issue 3296: Move Tweak_engraver to Score level X-Git-Tag: release/2.17.16-1~12 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=77d99c047772da8e897af75c49b00523556da01e;p=lilypond.git Issue 3296: Move Tweak_engraver to Score level This makes it possible to tweak items announced at Score level, like MetronomeMark and RehearsalMark. The advantage is that tweaks will be applied once regardless of the context structure (the Score context should exist only once). Due to the hierarchical nature of acknowledgers, acknowledgers in lower contexts will now get to see the grobs before tweaks have been applied. However, grobs are still unfinished (except for type, properties initialized via context properties and cause) at the time they are announced, with other details only getting filled in by the engraver after announcement, so the potential for trouble seems low. Acknowledgers should usually just register a grob (or write grob data) with any actual reading of grob data occurring at the end of the timestep instead. --- diff --git a/ly/engraver-init.ly b/ly/engraver-init.ly index d1f284da94..5902b25da9 100644 --- a/ly/engraver-init.ly +++ b/ly/engraver-init.ly @@ -231,7 +231,6 @@ multiple voices on the same staff." \consists "Note_heads_engraver" \consists "Dots_engraver" \consists "Rest_engraver" - \consists "Tweak_engraver" %% switch on to make stem directions interpolate for the %% center line. @@ -404,7 +403,6 @@ a collection of staves, with a bracket in front and spanning bar lines." \consists "Text_spanner_engraver" \consists "Font_size_engraver" \consists "Axis_group_engraver" - \consists "Tweak_engraver" pedalSustainStrings = #'("Ped." "*Ped." "*") pedalUnaCordaStrings = #'("una corda" "" "tre corde") @@ -440,7 +438,6 @@ printing of a single line of lyrics." \consists "Lyric_engraver" \consists "Extender_engraver" \consists "Hyphen_engraver" - \consists "Tweak_engraver" \consists "Stanza_number_engraver" \consists "Instrument_name_engraver" \consists "Font_size_engraver" @@ -548,6 +545,7 @@ automatically when an output definition (a @code{\\score} or \consists "Timing_translator" \consists "Default_bar_line_engraver" \consists "Output_property_engraver" + \consists "Tweak_engraver" \consists "System_start_delimiter_engraver" \consists "Mark_engraver" \consists "Volta_engraver"