]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/beaming.hh
* Another grand 2003 update.
[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--2003 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 "drul-array.hh"
15 #include "moment.hh"
16
17 struct Beaming_info
18 {
19   Moment start_mom_;
20   Drul_array<int> beams_i_drul_;
21
22   Beaming_info (Moment, int);
23   int count (Direction d);
24   Beaming_info ();
25 };
26
27 /*
28   Generate beaming given durations of notes. Beam uses this to
29   set_beaming () for each of its stems.
30 */
31 struct Beaming_info_list
32 {
33   Array<Beaming_info> infos_;
34
35   int beam_extend_count (Direction) const;
36   int best_splitpoint_index (Moment &beat_length,bool subdivide) const;
37   void beamify (Moment &beat_length,bool subdivide);
38   void add_stem (Moment d, int beams);
39 };
40
41
42 #endif /* BEAMING_HH */