]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/voice-element.hh
release: 0.0.42.pre3
[lilypond.git] / lily / include / voice-element.hh
1 /*
2   voice-element.hh -- declare Voice_element
3
4   source file of the LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9
10 #ifndef VOICE_ELEMENT_HH
11 #define VOICE_ELEMENT_HH
12
13 #include "proto.hh"
14 #include "plist.hh"
15 #include "moment.hh"
16
17 /** one horizontal bit.  Voice_element is nothing but a container for
18     *the requests, */
19 struct Voice_element {
20     Moment duration;
21     char const* defined_ch_c_l_;
22     Voice const *voice_l_;
23     IPointerList<Request*> reqs;
24
25     /* *************** */
26     
27     Voice_element();
28     Voice_element(Voice_element const & src );
29
30     void add(Request*);
31     bool find_plet_start_bo(char c, Moment& moment_r);
32     void print ()const;
33     void set_default_group(String id);
34     void set_plet_backwards(Moment& now_moment_r, Moment until_moment, int num_i, int den_i);
35 };
36
37 #endif // VOICE-ELEMENT_HH