]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/transposed-music.cc
Massive changes - see ChangeLog.
[lilypond.git] / lily / transposed-music.cc
index 952c33cdbd969fc06451ac07e397e4fd42996619..cad98f8eac9521f182436afc76256a52d8430d32 100644 (file)
@@ -3,36 +3,21 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 1998 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;
 }
-
-IMPLEMENT_IS_TYPE_B1 (Transposed_music, Music_wrapper);