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 "midi-item.hh"
14 #include "midi-stream.hh"
15 #include "voice-element.hh"
18 Voice::set_default_group(String s)
20 elts.top()->set_default_group(s);
24 Voice::find_plet_start_bo(char c, Moment& moment_r)
26 for (iter_bot(elts, i); i.ok(); i--)
27 if ( i->find_plet_start_bo(c, moment_r) )
33 Voice::set_plet_backwards(Moment& now_moment_r, Moment until_moment,
36 for (iter_bot(elts, i); i.ok(); i--)
37 if ( now_moment_r <= until_moment )
38 i->set_plet_backwards(now_moment_r, until_moment, num_i, den_i);
43 Voice::Voice(Voice const&src)
45 for (iter_top(src.elts, i); i.ok(); i++)
46 add(new Voice_element(**i));
57 Voice::add(Voice_element*v)
67 mtor << "Voice { start: "<< start<<eol;
68 for (iter_top(elts,i); i.ok(); i++)
81 for (iter_top(elts,i); i.ok(); i++)