2 beaming-pattern.hh -- declare beaming-pattern.hh
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 #ifndef BEAMING_PATTERN_HH
10 #define BEAMING_PATTERN_HH
12 #include "std-vector.hh"
14 #include "lily-proto.hh"
16 struct Beaming_options
19 bool subdivide_beams_;
21 Moment measure_length_;
24 void from_context (Context*);
27 struct Beam_rhythmic_element
30 Drul_array<int> beam_count_drul_;
36 Beam_rhythmic_element (Moment, int);
37 Beam_rhythmic_element ();
39 int count (Direction d);
44 Generate beaming given durations of notes. Beam uses this to
45 set_beaming () for each of its stems.
52 void beamify (Beaming_options const&);
54 void add_stem (Moment d, int beams);
55 int beamlet_count (int idx, Direction d) const;
58 vector<Beam_rhythmic_element> infos_;
60 int beam_extend_count (Direction) const;
61 int best_splitpoint_index (bool *split) const;
64 #endif /* BEAMING_PATTERN_HH */