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* Beam::stem_top ()const;
36 the slope of the beam in (staffpositions) per (X-dimension, in PT).
37 UGH. standardise this for once and for all.
41 /// position of leftmost end of beam
45 highest number of beams present, for opening-up of beam-spacing
46 and calculation of stem lengths
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);
59 Offset center () const;
60 Direction get_default_dir () const;
61 void set_direction (Direction);
62 void beamify_stems ();
63 bool auto_knee (SCM gap, bool interstaff_b);
66 virtual void do_pre_processing ();
67 virtual void do_post_processing ();
68 virtual void do_add_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);