2 stem.hh -- declare Stem
4 (c) 1996,97 Han-Wen Nienhuys
14 /**the rule attached to the ball.
20 \item up/down position.
23 should move beam_{left, right} into Beam
25 class Stem : public Item {
27 Real stem_bottom_f_, stem_top_f_;
30 /// needed for determining direction/length
33 /**extent of the stem (positions).
34 fractional, since Beam has to adapt them.
39 geen gedonder, jij gaat onder.
40 -1 stem points down, +1: stem points up
44 store the wholes (for vapourware tremolo)
46 Link_array<Note_head> whole_l_arr_;
47 Link_array<Note_head> head_l_arr_;
48 Link_array<Note_head> rest_l_arr_;
51 /// flagtype? 4 none, 8 8th flag, 0 = beam.
64 Stem(int staff_size_i);
66 /// ensure that this Stem also encompasses the Notehead #n#
67 void add(Note_head*n);
73 void do_print() const;
74 void set_stemend(Real);
75 int get_default_dir();
76 int get_center_distance();
77 void set_default_dir();
78 void set_default_stemlen();
79 void set_default_extents();
82 Real stem_length_f()const;
83 Real stem_end_f()const;
84 Real stem_start_f() const;
86 bool invisible_b()const;
89 /// heads that the stem encompasses (positions)
90 int max_head_i() const;
91 int min_head_i() const;
93 virtual void do_substitute_dependency(Score_elem*,Score_elem*);
94 virtual void do_pre_processing();
95 virtual Interval do_width() const;
96 Molecule* brew_molecule_p() const;