2 voice.cc -- implement Voice
4 source file of the GNU 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::transpose(Melodic_req const & d)const
22 for (iter_bot(elts_, i); i.ok(); i--)
27 Voice::set_default_group(String s)
29 elts_.top()->set_default_group(s);
33 Voice::find_plet_start_b(char c, Moment& moment_r)
35 for (iter_bot(elts_, i); i.ok(); i--)
36 if ( i->find_plet_start_b(c, moment_r) )
42 Voice::set_plet_backwards(Moment& now_moment_r, Moment until_moment,
45 for (iter_bot(elts_, i); i.ok(); i--)
46 if ( now_moment_r <= until_moment )
47 i->set_plet_backwards(now_moment_r, until_moment, num_i, den_i);
52 Voice::Voice(Voice const&src)
54 for (iter_top(src.elts_, i); i.ok(); i++)
55 add(new Voice_element(**i));
66 Voice::add(Voice_element*v)
69 elts_.bottom().add(v);
76 mtor << "Voice { start_: "<< start_<<eol;
77 for (iter_top(elts_,i); i.ok(); i++)
84 @return The moment at which last element stops.
93 for (iter_top(elts_,i); i.ok(); i++)