lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Move left-broken line-spanner check to callback.


From: n . puttock
Subject: Re: Move left-broken line-spanner check to callback.
Date: Sat, 11 Apr 2009 12:31:11 +0000

Reviewers: joeneeman,

Message:
On 2009/04/08 20:42:51, joeneeman wrote:
http://codereview.appspot.com/32148/diff/1/7#newcode426
Line 426: Spanner::after_line_breaking (SCM grob)
Can you think of a name that describes what the function actually
does? Like
Spanner::suicide_if_spanned_time_is_empty, but maybe less verbose...

How about Spanner::kill_zero_length_span or
Spanner::kill_zero_spanned_time?


Description:
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::after-line-breaking

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

- added new callback to Hairpin, Glissando and VoiceFollower

Please review this at http://codereview.appspot.com/32148

Affected files:
  A input/regression/spanner-after-line-breaking.ly
  M lily/hairpin.cc
  M lily/include/hairpin.hh
  M lily/include/spanner.hh
  M lily/line-spanner.cc
  M lily/spanner.cc
  M scm/define-grobs.scm






reply via email to

[Prev in Thread] Current Thread [Next in Thread]