2 stem.hh -- declare Stem
4 (c) 1996,97 Han-Wen Nienhuys
12 #include "molecule.hh"
15 /**the rule attached to the ball.
21 \item up/down position.
24 should move beam_{left, right} into Beam
28 Stem size depends on flag.
30 class Stem : public Item {
32 Molecule abbrev_mol () const;
34 Drul_array<Real> yextent_drul_;
36 /// needed for determining direction/length
39 /**extent of the stem (positions).
40 fractional, since Beam has to adapt them.
45 geen gedonder, jij gaat onder.
46 -1 stem points down, +1: stem points up
50 Link_array<Note_head> head_l_arr_;
51 Link_array<Rest> rest_l_arr_;
54 /// abbrev flag? + count
57 /// how many abbrev beam don't reach stem?
60 /// log of the duration. Eg. 4 -> 16th note -> 2 flags
64 don't print flag when in beam.
65 our beam, for aligning abbrev flags
77 /// ensure that this Stem also encompasses the Notehead #n#
78 void add (Rhythmic_head*n);
80 DECLARE_MY_RUNTIME_TYPEINFO;
86 void do_print() const;
87 void set_stemend (Real);
88 Direction get_default_dir();
90 int get_center_distance(Direction);
91 void set_default_dir();
92 void set_default_stemlen();
93 void set_default_extents();
96 Real stem_length_f() const;
97 Real stem_end_f() const;
98 Real stem_start_f() const;
99 Real note_delta_f () const;
101 bool invisible_b() const;
103 /// heads that the stem encompasses (positions)
104 Interval_t<int> head_positions() const;
106 virtual void do_substitute_dependency (Score_elem*,Score_elem*);
107 virtual void do_pre_processing();
108 virtual Interval do_width() const;
109 Molecule* brew_molecule_p() const;