*/
#include "engraver.hh"
-#include "beaming.hh"
+#include "beaming-pattern.hh"
#include "beam.hh"
#include "stem.hh"
#include "warn.hh"
*/
Moment shortest_mom_;
Spanner *finished_beam_;
- Link_array__Item_ *stems_;
+ vector<Item*> *stems_;
int process_acknowledged_count_;
Moment last_add_mom_;
Moment beat_length_;
// We act as if beam were created, and start a grouping anyway.
- Beaming_info_list *grouping_;
+ Beaming_pattern *grouping_;
SCM beam_settings_;
- Beaming_info_list *finished_grouping_;
+ Beaming_pattern *finished_grouping_;
void check_bar_property ();
};
return;
}
- stems_ = new Link_array__Item_;
- grouping_ = new Beaming_info_list;
+ stems_ = new vector<Item*>;
+ grouping_ = new Beaming_pattern ();
beam_settings_ = updated_grob_properties (context (), ly_symbol2scm ("Beam"));
beam_start_moment_ = now_mom ();
beam_start_location_
= robust_scm2moment (get_property ("measurePosition"), Moment (0));
- subdivide_beams_ = ly_scm2bool (get_property ("subdivideBeams"));
- beat_length_ = robust_scm2moment (get_property ("beatLength"), Moment (1, 4));
}
void
{
if (finished_beam_)
{
- finished_grouping_->beamify (beat_length_, subdivide_beams_);
+ if (!finished_beam_->get_bound (RIGHT))
+ finished_beam_->set_bound (RIGHT, finished_beam_->get_bound (LEFT));
+
+ finished_grouping_->beamify (context ());
Beam::set_beaming (finished_beam_, finished_grouping_);
finished_beam_ = 0;