X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Frelative-octave-music.cc;h=ae6773a6b28b4ed2807eb063d2ecac9962f6f9c6;hb=d79efa6efaa15be34beda70e5b24731a1d372f0e;hp=db24b85fc0d12ca57025970b346d675d8c40db20;hpb=1cf3d59c1559fb9774c4c1c8cae155cfe54a927c;p=lilypond.git diff --git a/lily/relative-octave-music.cc b/lily/relative-octave-music.cc index db24b85fc0..ae6773a6b2 100644 --- a/lily/relative-octave-music.cc +++ b/lily/relative-octave-music.cc @@ -3,31 +3,25 @@ source file of the GNU LilyPond music typesetter - (c) 1998 Han-Wen Nienhuys + (c) 1998--2000 Han-Wen Nienhuys */ #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_p_->to_relative_octave (def); + set_mus_property ("type", ly_symbol2scm ("relative-octave-music")); } -void -Relative_octave_music::do_print () const -{ - Music_wrapper::do_print (); - DOUT << "default pitch: " << last_pitch_.str (); -} -IMPLEMENT_IS_TYPE_B1 (Relative_octave_music, Music_wrapper); +