]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/beaming.hh
44b7df2a59c8895581460f94dd155e2856cb8a74
[lilypond.git] / lily / include / beaming.hh
1 /*   
2   beaming.hh -- declare beaming.hh
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1999--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef BEAMING_HH
11 #define BEAMING_HH
12
13 #include "parray.hh"
14 #include "moment.hh"
15
16 struct Beaming_info
17 {
18   Moment start_mom_;
19   Drul_array<int> beams_i_drul_;
20
21   Beaming_info (Moment, int);
22   int count (Direction d);
23   Beaming_info ();
24 };
25
26 /*
27   Generate beaming given durations of notes. Beam uses this to
28   set_beaming () for each of its stems.
29 */
30 struct Beaming_info_list
31 {
32   Array<Beaming_info> infos_;
33
34   int beam_extend_count (Direction) const;
35   int best_splitpoint_index (Moment &beat_length, bool subdivide) const;
36   void beamify (Moment &beat_length, bool subdivide);
37   void add_stem (Moment d, int beams);
38 };
39
40
41 #endif /* BEAMING_HH */