]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/voice.hh
release: 0.0.42.pre3
[lilypond.git] / lily / include / voice.hh
1 #ifndef VOICE_HH
2 #define VOICE_HH
3
4 #include "proto.hh"
5 #include "plist.hh"
6 #include "moment.hh"
7
8 /** class for  horizontal stuff.
9
10     Voice is a ordered row of Voice_elements. It is strictly
11     horizontal: you cannot have two rhythmic elements running parallel
12     in a Voice. For proper processing, each Voice should have
13     Group_change_req as a first element.
14
15     */
16
17 struct Voice {
18     IPointerList<Voice_element *> elts;
19     Moment start;
20
21     /* *************** */
22     Voice();
23     Voice(Voice const&);
24
25     Moment when(Voice_element const *)const;
26     Moment last() const;
27
28     void add(Voice_element*);
29     bool find_plet_start_bo(char c, Moment& moment_r);
30     void print() const;
31     void set_default_group(String id);
32     void set_plet_backwards(Moment& now_moment_r, Moment until_moment, int num_i, int den_i);
33 };
34
35 #endif