2 voice.cc -- implement Voice
4 source file of the LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
13 #include "musical-request.hh"
14 #include "command-request.hh"
15 #include "midi-item.hh"
16 #include "midi-stream.hh"
17 #include "voice-element.hh"
20 Voice::set_default_group(String s)
22 elts.top()->set_default_group(s);
26 Voice::find_plet_start_bo(char c, Moment& moment_r)
28 for (iter_bot(elts, i); i.ok(); i--)
29 if ( i->find_plet_start_bo(c, moment_r) )
35 Voice::set_plet_backwards(Moment& now_moment_r, Moment until_moment,
38 for (iter_bot(elts, i); i.ok(); i--)
39 if ( now_moment_r <= until_moment )
40 i->set_plet_backwards(now_moment_r, until_moment, num_i, den_i);
45 Voice::Voice(Voice const&src)
47 for (iter_top(src.elts, i); i.ok(); i++)
48 add(new Voice_element(**i));
59 Voice::add(Voice_element*v)
69 mtor << "Voice { start: "<< start<<eol;
70 for (iter_top(elts,i); i.ok(); i++)
83 for (iter_top(elts,i); i.ok(); i++)