X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmusic-wrapper.cc;h=a17a631039383001e0e3a71c5ed2c94f9db1a7b9;hb=f61bd6a69dec63300c68fc9455bd54d6a6067696;hp=222bda0fcd23962d43950c33bf7973fa08d7bd8a;hpb=6b9bfd374643d1eed1ea158777d796c57a2bcd3a;p=lilypond.git diff --git a/lily/music-wrapper.cc b/lily/music-wrapper.cc index 222bda0fcd..a17a631039 100644 --- a/lily/music-wrapper.cc +++ b/lily/music-wrapper.cc @@ -3,53 +3,29 @@ source file of the GNU LilyPond music typesetter - (c) 1998--2002 Han-Wen Nienhuys + (c) 1998--2004 Han-Wen Nienhuys */ - #include "music-wrapper.hh" - - - -void -Music_wrapper::transpose (Pitch p) -{ - if (element ()) - element ()-> transpose (p); -} - - Music_wrapper::Music_wrapper () : Music () { } Moment -Music_wrapper::length_mom () const -{ - return element ()->length_mom (); -} - -Pitch -Music_wrapper::to_relative_octave (Pitch p) +Music_wrapper::get_length () const { - return element ()->to_relative_octave (p); + return element ()->get_length (); } - Music* Music_wrapper::element () const { - return unsmob_music (get_mus_property ("element")); + return unsmob_music (get_property ("element")); } -void -Music_wrapper::compress (Moment m) -{ - element ()->compress (m); -} ADD_MUSIC (Music_wrapper);