]> git.donarmstrong.com Git - lilypond.git/commit - lily/line-spanner.cc
Move left-broken line-spanner check to callback.
authorNeil Puttock <n.puttock@gmail.com>
Sun, 12 Apr 2009 12:15:03 +0000 (13:15 +0100)
committerNeil Puttock <n.puttock@gmail.com>
Wed, 15 Apr 2009 19:34:41 +0000 (20:34 +0100)
commit131eeda0980667a4aeac1742f0f29961c16cb7e0
tree9f9d4a22bc4a13b4c93e71d9e6513558b873346d
parent08d1196bc276543397ded663f8c6456f148e7bbb
Move left-broken line-spanner check to callback.

Currently, left-broken line spanners and hairpins are removed when they
end on the first note of the new system.  Though this is appropriate
for glissandi and voice followers, there is no way to override this
default behaviour.

This patch allows the user to tweak the appearance by overriding
'after-line-breaking.

- removed left-broken check from ly:line-spanner::print to a new
after-line-breaking callback, ly:spanner::kill-zero-spanned-time

- removed hairpin after-line-breaking callback and associated method
consider_suicide ()

- added new callback to Hairpin, Glissando, TrillSpanner and VoiceFollower

- added convert rule for ly:hairpin::after-line-breaking
input/regression/spanner-after-line-breaking.ly [new file with mode: 0644]
lily/hairpin.cc
lily/include/hairpin.hh
lily/include/spanner.hh
lily/line-spanner.cc
lily/spanner.cc
python/convertrules.py
scm/define-grobs.scm