2 beam.hh -- part of GNU LilyPond
4 (c) 1996--1999 Han-Wen Nienhuys
10 #include "lily-proto.hh"
11 #include "directional-spanner.hh"
14 /** a beam connects multiple stems.
16 Beam adjusts the stems its owns to make sure that they reach the
17 beam and that point in the correct direction
21 damping: amount of beam slope damping. (int)
23 should beam slope be damped? 0: no, 1: yes, 100000: horizontal beams
25 slope_quantisation: 'none, 'normal or 'traditional
28 class Beam : public Directional_spanner {
31 int stem_count () const;
32 Stem* stem (int) const;
33 Stem* stem_top () const;
34 int visible_stem_count () const;
35 Stem* first_visible_stem () const;
36 Stem* last_visible_stem () const;
39 the slope of the beam in (staffpositions) per (X-dimension, in PT).
40 UGH. standardise this for once and for all.
44 /// position of leftmost end of beam
48 highest number of beams present, for opening-up of beam-spacing
49 and calculation of stem lengths
54 void add_stem (Stem*);
56 void set_grouping (Rhythmic_grouping def, Rhythmic_grouping current);
57 void set_beaming (Beaming_info_list *);
59 VIRTUAL_COPY_CONS(Score_element);
62 Offset center () const;
63 Direction get_default_dir () const;
64 void set_direction (Direction);
65 void set_stem_shorten ();
66 bool auto_knee (SCM gap, bool interstaff_b);
69 virtual void do_pre_processing ();
70 virtual void do_post_processing ();
71 virtual void do_add_processing ();
72 virtual void do_print() const;
73 virtual Molecule*do_brew_molecule_p () const;
75 Molecule stem_beams (Stem *here, Stem *next, Stem *prev) const;
78 void calculate_slope ();
79 Real check_stemlengths_f (bool set_b);
82 void quantise_left_y (bool extend_b);