]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/transposed-music.cc
release: 1.5.29
[lilypond.git] / lily / transposed-music.cc
index 2bcb37086552f5e4ef1f9216a30770f942b2fc83..86c9b84849016f070c276e12edacec7426f1a9da 100644 (file)
@@ -3,33 +3,28 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 1998--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1998--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
   
  */
 
 #include "transposed-music.hh"
 #include "debug.hh"
 
-Transposed_music::Transposed_music (Music *p, Musical_pitch pit)
-  : Music_wrapper (p)
+Transposed_music::Transposed_music (SCM l)
+  : Music_wrapper (l)
 {
-  transpose_to_pitch_ = pit;
-  p->transpose (pit);
+  set_mus_property ("type", ly_symbol2scm ("transposed-music"));
 }
 
-void
-Transposed_music::do_print () const
-{
-  Music_wrapper::do_print ();
-  DEBUG_OUT << "transposition pitch: " << transpose_to_pitch_.str ();
-}
 
-Musical_pitch
-Transposed_music::to_relative_octave (Musical_pitch p)
+Pitch
+Transposed_music::to_relative_octave (Pitch p)
 {
-
   return p;
 }
 
+ADD_MUSIC (Transposed_music);
+Transposed_music::Transposed_music ()
+{
 
-
+}