]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/transposed-music.cc
2003 -> 2004
[lilypond.git] / lily / transposed-music.cc
index 2547fac08bf8dcfe2429dc0ba57ff084c5de9efe..47905bca5357606fa5d0965cb505dd10ae060e26 100644 (file)
@@ -3,35 +3,21 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 1998--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1998--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
   
  */
 
 #include "transposed-music.hh"
-#include "debug.hh"
+#include "warn.hh"
 
-Transposed_music::Transposed_music (Music *p, Musical_pitch pit)
-  : Music_wrapper (p)
+Pitch
+Transposed_music::to_relative_octave (Pitch p)
 {
-  transpose_to_pitch_ = pit;
-  p->transpose (pit);
+  return p;
 }
 
-void
-Transposed_music::do_print () const
+ADD_MUSIC (Transposed_music);
+Transposed_music::Transposed_music ()
 {
-  Music_wrapper::do_print ();
-  DEBUG_OUT << "transposition pitch: " << transpose_to_pitch_.str ();
-}
 
-Musical_pitch
-Transposed_music::to_relative_octave (Musical_pitch p)
-{
-#if 0                          // Mats?
-    warning (_ ("Will ignore \\relative for transposed music"));
-#endif
-  return p;
 }
-
-
-