]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/transposed-music.cc
Massive changes - see ChangeLog.
[lilypond.git] / lily / transposed-music.cc
index 2d9c310badd651f63e7ad5b99c94f4f37f13e422..cad98f8eac9521f182436afc76256a52d8430d32 100644 (file)
@@ -3,35 +3,21 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 1998--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1998--2003 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 ();
-  DOUT << "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;
 }
-
-
-