DescriptionImplement framework for post-fix text (de)cresc spanners
The main problem why \decr or \dim were prefix operators was that the
new dynamic engraver was reading only the properties of the Engraver
itself, so there was no way to create a CrescendoEvent and at the same
time specify the hairpin/text behavior.
This patch makes the New_dynamic_engraver also look at the properties
of the (Dec|C)recendoEvent and prefer a setting from there. If the event
does not have a property (which will be the case most of the time), the
Engraver's settings are used (i.e. same behavior as now).
With this change, e.g. \dim can be defined as
dim = #(make-music 'DecrescendoEvent 'span-direction START
'decrescendoSpanner 'text 'decrescendoText "dim.")
and used as postfix like a4\dim without the need of any overrides
before the affected note.
Patch Set 1 #
Total comments: 1
Patch Set 2 : Add regtest, use property-name instead of PropertyName #
MessagesTotal messages: 1
|