X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fbeaming-pattern.cc;h=5e6d29ca6816049d0005587be178c919294a43c3;hb=cb01be4028886109ecc4772234452965ce7dfb66;hp=c32666133ba84f9b5fbb244d4fd7a9d018070326;hpb=a6a4b3fc2009f17a1a48cca0c11bfd3f38645937;p=lilypond.git diff --git a/lily/beaming-pattern.cc b/lily/beaming-pattern.cc index c32666133b..5e6d29ca68 100644 --- a/lily/beaming-pattern.cc +++ b/lily/beaming-pattern.cc @@ -1,5 +1,5 @@ /* - beaming-info.cc -- implement Beam_rhythmic_element, Beaming_pattern + beaming-pattern.cc -- implement Beam_rhythmic_element, Beaming_pattern A Beaming_pattern object takes a set of stems at given moments and calculates the pattern of their beam. That is, it works out, for each stem, how many @@ -10,11 +10,12 @@ source file of the GNU LilyPond music typesetter - (c) 1999--2008 Han-Wen Nienhuys + (c) 1999--2009 Han-Wen Nienhuys */ -#include "beaming-pattern.hh" #include "context.hh" +#include "beam-settings.hh" +#include "beaming-pattern.hh" /* Represents a stem belonging to a beam. Sometimes (for example, if the stem @@ -52,7 +53,7 @@ Beam_rhythmic_element::de_grace () { if (start_moment_.grace_part_) { - start_moment_.main_part_ = start_moment_.grace_part_; + start_moment_.main_part_ = start_moment_.grace_part_; start_moment_.grace_part_ = 0; } } @@ -150,7 +151,7 @@ Beaming_pattern::beamify (Beaming_options const &options) void Beaming_pattern::find_rhythmic_importance (Beaming_options const &options) { - Moment measure_pos (0); + Moment measure_pos (0); SCM grouping = options.grouping_; vsize i = 0; @@ -243,10 +244,10 @@ Beaming_pattern::beamlet_count (int i, Direction d) const void Beaming_options::from_context (Context *context) { - grouping_ = context->get_property ("beatGrouping"); + grouping_ = ly_beat_grouping (context->self_scm ()); subdivide_beams_ = to_boolean (context->get_property ("subdivideBeams")); beat_length_ = robust_scm2moment (context->get_property ("beatLength"), Moment (1, 4)); - measure_length_ = robust_scm2moment (context->get_property ("measureLength"), Moment (1, 4)); + measure_length_ = robust_scm2moment (context->get_property ("measureLength"), Moment (4, 4)); } Beaming_options::Beaming_options ()