2 stem.hh -- declare Stem
4 (c) 1996--2000 Han-Wen Nienhuys
13 #include "molecule.hh"
14 #include "stem-info.hh"
16 /**the rule attached to the ball.
22 \item up/down position.
25 should move beam_{left, right} into Beam
29 Stem size depends on flag.
33 beam_dir: direction of the beam (int)
35 dir_force: is direction explicitely specified? (bool)
37 /// how many abbrev beam don't reach stem?
43 class Stem : public Item
46 static SCM scheme_molecule (SCM);
50 /// log of the duration. Eg. 4 -> 16th note -> 2 flags
53 int beam_count (Direction) const;
54 void set_beaming (int, Direction d);
56 don't print flag when in beam.
57 our beam, for aligning abbrev flags
59 Beam* beam_l () const;
60 Note_head * first_head () const;
61 Drul_array<Note_head*> extremal_heads () const;
63 Score_element * support_head () const;
66 /// ensure that this Stem also encompasses the Notehead #n#
67 void add_head (Rhythmic_head*n);
69 Stem_info calc_stem_info () const;
71 Real chord_start_f () const;
72 Direction get_direction () const;
74 void set_stemend (Real);
75 Direction get_default_dir() const;
77 int get_center_distance(Direction) const;
80 bool invisible_b() const;
82 /// heads that the stem encompasses (positions)
83 Interval head_positions() const;
86 friend class Stem_tremolo; // ugh.
87 Real get_default_stem_end_position () const;
88 void position_noteheads();
90 Real stem_end_position () const;
91 static Real off_callback (Score_element const*, Axis);
92 Molecule flag () const;
94 virtual void before_line_breaking();
95 static Interval dim_callback (Score_element const*,Axis);
96 Molecule do_brew_molecule() const;
98 void set_spacing_hints () ;