From: Han-Wen Nienhuys Date: Mon, 22 May 2006 23:13:17 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: release/2.9.6~13 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e0e7ae9d391b2e393419182f8adb359b01cbe838;p=lilypond.git *** empty log message *** --- diff --git a/ChangeLog b/ChangeLog index dde1af11e9..183f534720 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-05-23 Han-Wen Nienhuys + + * lily/beaming-pattern.cc (beamify): deal with negative start + moments for beaming patterns. + 2006-05-22 Han-Wen Nienhuys * lily/beaming-info.cc (beamify): new function: read beatLength diff --git a/Documentation/topdocs/NEWS.tely b/Documentation/topdocs/NEWS.tely index e7868f427e..da63646e87 100644 --- a/Documentation/topdocs/NEWS.tely +++ b/Documentation/topdocs/NEWS.tely @@ -151,7 +151,7 @@ support for feathered beaming, c16[ c c c c c c c ] - } +} @end lilypond This feature was sponsored by Jamie Bullock. diff --git a/lily/beaming-pattern.cc b/lily/beaming-pattern.cc index c6fba3a5a5..f48faadc56 100644 --- a/lily/beaming-pattern.cc +++ b/lily/beaming-pattern.cc @@ -79,6 +79,11 @@ Beaming_pattern::beamify (Context *context) bool subdivide_beams = to_boolean (context->get_property ("subdivideBeams")); Moment beat_length = robust_scm2moment (context->get_property ("beatLength"), Moment (1, 4)); + Moment measure_length = robust_scm2moment (context->get_property ("beatLength"), Moment (1, 4)); + + if (infos_[0].start_moment_ < Moment (0)) + for (vsize i = 0; i < infos_.size(); i++) + infos_[i].start_moment_ += measure_length; SCM grouping = context->get_property ("beatGrouping"); Moment measure_pos (0);