+
+/** a beam connects multiple stems.
+
+ Beam adjusts the stems its owns to make sure that they reach the
+ beam and that point in the correct direction (urg?)
+
+elt property:
+
+damping: amount of beam slope damping. (int)
+
+should beam slope be damped? 0: no, 1: yes, 100000: horizontal beams
+
+slope_quantisation: 'none, 'normal or 'traditional
+
+*/
+class Beam : public Directional_spanner
+{
+public:
+
+ int stem_count () const;
+ Stem* stem (int) const;
+ Stem* stem_top () const;
+ int visible_stem_count () const;
+ Stem* first_visible_stem () const;
+ Stem* last_visible_stem () const;
+
+ /**
+ the slope of the beam in dy/dx
+ */
+ Real dydx_f_;
+
+ /// position of leftmost end of beam
+ Real left_y_;
+
+ Beam ();
+ void add_stem (Stem*);
+ void set_grouping (Rhythmic_grouping def, Rhythmic_grouping current);
+ void set_beaming (Beaming_info_list *);
+ void set_stemlens ();
+ VIRTUAL_COPY_CONS(Score_element);
+
+ int get_multiplicity () const;
+
+protected:
+
+ virtual void do_pre_processing ();
+ virtual void do_post_processing ();
+ virtual Molecule*do_brew_molecule_p () const;
+
+ Molecule stem_beams (Stem *here, Stem *next, Stem *prev) const;