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);
32 Voice::Voice(Voice const&src)
34 for (iter_top(src.elts_, i); i.ok(); i++)
35 add(new Voice_element(**i));
46 Voice::add(Voice_element*v)
49 elts_.bottom().add(v);
56 mtor << "Voice { start_: "<< start_<<eol;
57 for (iter_top(elts_,i); i.ok(); i++)
64 @return The moment at which last element stops.
73 for (iter_top(elts_,i); i.ok(); i++)