X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=lily%2Fmusic-wrapper.cc;h=3eac65aec6f4688469611208c0d78cd1754ae089;hb=b0d6e82437680bc7c8091db78524d91957c6af49;hp=59d3c43441064334e4aad394820672088ab82254;hpb=9661ba1fb275f3e14f8a69f2cee2f02a2f893e48;p=lilypond.git diff --git a/lily/music-wrapper.cc b/lily/music-wrapper.cc index 59d3c43441..3eac65aec6 100644 --- a/lily/music-wrapper.cc +++ b/lily/music-wrapper.cc @@ -3,54 +3,38 @@ source file of the GNU LilyPond music typesetter - (c) 1998--2000 Han-Wen Nienhuys + (c) 1998--2004 Han-Wen Nienhuys */ -#include "music-wrapper.hh" - - -void -Music_wrapper::do_print () const -{ - element ()->print (); -} -void -Music_wrapper::transpose (Musical_pitch p) -{ - if (element ()) - element ()-> transpose (p); -} +#include "music-wrapper.hh" -Music_wrapper::Music_wrapper(Music*p) +Music_wrapper::Music_wrapper () + : Music () { - set_mus_property ("element", p->self_scm_); } Moment -Music_wrapper::length_mom () const +Music_wrapper::get_length () const { - return element ()->length_mom (); + return element ()->get_length (); } -Musical_pitch -Music_wrapper::to_relative_octave (Musical_pitch p) -{ - return element ()->to_relative_octave (p); -} - - Music* Music_wrapper::element () const { - return unsmob_music (get_mus_property ("element")); + return unsmob_music (get_property ("element")); } -void -Music_wrapper::compress (Moment m) + +ADD_MUSIC (Music_wrapper); + + +Moment +Music_wrapper::start_mom () const { - element ()->compress (m); + return element ()->start_mom (); }