]> git.donarmstrong.com Git - lilypond.git/commit
Issue 3296: Move Tweak_engraver to Score level
authorDavid Kastrup <dak@gnu.org>
Thu, 4 Apr 2013 09:12:38 +0000 (11:12 +0200)
committerDavid Kastrup <dak@gnu.org>
Tue, 9 Apr 2013 07:20:15 +0000 (09:20 +0200)
commit77d99c047772da8e897af75c49b00523556da01e
tree85575028c5cf0f58c5f960d21bf909c07d5ec82f
parent075bb9c641b3488def68238fb6690eb97f5e6013
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.
ly/engraver-init.ly