]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.43
authorfred <fred>
Sun, 24 Mar 2002 19:35:50 +0000 (19:35 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:35:50 +0000 (19:35 +0000)
lily/voice-elt.cc
lily/voice.cc

index f244327c5fe6b190ba5c4cd52aeefe156960347c..5b59242c75b7d84bfed9c0f28f82374fdc015de4 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  voiceelt.cc -- implement Voice_element
+  voice-elt.cc -- implement Voice_element
 
   source file of the LilyPond music typesetter
 
 #include "command-request.hh"
 
 
+void
+Voice_element::transpose(Melodic_req const&d)const
+{
+    for (iter_top(reqs,i); i.ok(); i++) {
+       i->transpose(d);
+      }
+}
+
 void
 Voice_element::print() const
 {
index 47e9e28378bb80086b0535507360cfa6bcc261ed..2294d57b2ecb0d8f87ab4fb75c3eca91a3a9e4f7 100644 (file)
 #include "midi-stream.hh"
 #include "voice-element.hh"
 
+void
+Voice::transpose(Melodic_req const & d)const
+{
+     for (iter_bot(elts, i); i.ok(); i--)
+       i->transpose(d); 
+}
+
 void
 Voice::set_default_group(String s)
 {