lilypond-1.5.10
[lilypond.git] / lily / include / voice-element.hh
blob6bc85597afc764dd7d459e202b166e6366ba11ba
1 /*
2 voice-element.hh -- declare Voice_element
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
10 #ifndef VOICE_ELEMENT_HH
11 #define VOICE_ELEMENT_HH
13 #include "lily-proto.hh"
14 #include "plist.hh"
15 #include "moment.hh"
16 #include "input.hh"
18 /** one horizontal bit. Voice_element is nothing but a container for
19 *the requests, */
20 class Voice_element : public Input{
21 public:
22 /** the duration of the element. This can be 0; The duration is
23 determined from rhythmical requests contained in this
24 Voice_element */
25 Moment duration_;
26 Voice const *voice_C_;
27 Pointer_list<Request*> req_p_list_;
28 Request * principal_req_l_;
30 /* *************** */
31 void transpose(Melodic_req const &)const;
32 Voice_element();
33 Voice_element(Voice_element const & src );
35 void add(Request*);
36 void print ()const;
37 void set_default_group(String id);
40 #endif // VOICE-ELEMENT_HH