2 voice.cc -- implement Voice
4 source file of the LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
11 #include "musicalrequest.hh"
12 #include "commandrequest.hh"
13 #include "midiitem.hh"
14 #include "midistream.hh"
17 Voice::set_default_group(String s)
19 elts.top()->set_default_group(s);
23 Voice::find_plet_start_bo(char c, Moment& moment_r)
25 for (iter_bot(elts, i); i.ok(); i--)
26 if ( i->find_plet_start_bo(c, moment_r) )
32 Voice::set_plet_backwards(Moment& now_moment_r, Moment until_moment, int num_i, int den_i)
34 for (iter_bot(elts, i); i.ok(); i--)
35 if ( now_moment_r <= until_moment )
36 i->set_plet_backwards(now_moment_r, until_moment, num_i, den_i);
41 Voice::Voice(Voice const&src)
43 for (iter_top(src.elts, i); i.ok(); i++)
44 add(new Voice_element(**i));
55 Voice::add(Voice_element*v)
65 mtor << "start: "<< start<<eol;
66 for (iter_top(elts,i); i.ok(); i++)
78 for (iter_top(elts,i); i.ok(); i++)