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
51 void add_stem (Stem*);
53 void set_grouping (Rhythmic_grouping def, Rhythmic_grouping current);
54 void set_beaming (Beaming_info_list *);
56 VIRTUAL_COPY_CONS(Score_element);
57 int multiplicity_i () const;
60 Offset center () const;
61 Direction get_default_dir () const;
62 void set_direction (Direction);
63 void set_stem_shorten ();
64 bool auto_knee (SCM gap, bool interstaff_b);
67 virtual void do_pre_processing ();
68 virtual void do_post_processing ();
69 virtual void do_print() const;
70 virtual Molecule*do_brew_molecule_p () const;
72 Molecule stem_beams (Stem *here, Stem *next, Stem *prev) const;
75 void calculate_slope ();
76 Real check_stemlengths_f (bool set_b);
79 void quantise_left_y (bool extend_b);