]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/relative-octave-music.cc
tab patch 4
[lilypond.git] / lily / relative-octave-music.cc
index af18a32b1d80e230d3276ce6e4a81202a4d515d9..b9aeb445a33a9ba388a52c831812a94d40834865 100644 (file)
@@ -3,31 +3,29 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 1998--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1998--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
   
  */
 
 #include "relative-music.hh"
 #include "debug.hh"
 
-Musical_pitch
-Relative_octave_music::to_relative_octave (Musical_pitch)
+Pitch
+Relative_octave_music::to_relative_octave (Pitch)
 {
-  return last_pitch_;
+  return * unsmob_pitch (get_mus_property ("last-pitch"));
 }
 
 
-Relative_octave_music::Relative_octave_music(Music*p,Musical_pitch def)
-  : Music_wrapper (p)
+Relative_octave_music::Relative_octave_music (SCM l)
+  : Music_wrapper (l)
 {
-  last_pitch_ = element_l ()->to_relative_octave (def);
+  set_mus_property ("type", ly_symbol2scm ("relative-octave-music"));  
 }
 
-void
-Relative_octave_music::do_print () const
+Relative_octave_music::Relative_octave_music ()
 {
-  Music_wrapper::do_print ();
-  DEBUG_OUT << "default pitch: " << last_pitch_.str ();
+  set_mus_property ("type", ly_symbol2scm ("relative-octave-music"));
 }
 
-
+ADD_MUSIC (Relative_octave_music);