X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmusic-wrapper.cc;h=81238971718ed1dfd5441f30b9874d0900499e18;hb=a7f82e4dc22fc6219a9fe0f6874f8c91e3f31f24;hp=939b90db94868a3787bded5602bae54a7345a2e6;hpb=4eee0d110ca632aa8adf3af223f7040c7b9752ff;p=lilypond.git diff --git a/lily/music-wrapper.cc b/lily/music-wrapper.cc index 939b90db94..8123897171 100644 --- a/lily/music-wrapper.cc +++ b/lily/music-wrapper.cc @@ -1,41 +1,31 @@ -/* - music-wrapper.cc -- implement Music_wrapper - +/* + music-wrapper.cc -- implement Music_wrapper + source file of the GNU LilyPond music typesetter - - (c) 1998--2004 Han-Wen Nienhuys - - */ + + (c) 1998--2005 Han-Wen Nienhuys +*/ #include "music-wrapper.hh" -Music_wrapper::Music_wrapper (SCM x) - : Music (x) -{ -} +#include "music.hh" -MAKE_SCHEME_CALLBACK(Music_wrapper,length_callback,1); +MAKE_SCHEME_CALLBACK (Music_wrapper, start_callback, 1); SCM -Music_wrapper::length_callback (SCM m) +Music_wrapper::start_callback (SCM m) { - Music * me = unsmob_music (m); + Music *me = unsmob_music (m); Music *elt = unsmob_music (me->get_property ("element")); - return elt->get_length ().smobbed_copy (); + return elt->start_mom ().smobbed_copy (); } -Music* -Music_wrapper::element () const +MAKE_SCHEME_CALLBACK (Music_wrapper, length_callback, 1); +SCM +Music_wrapper::length_callback (SCM m) { - return unsmob_music (get_property ("element")); + Music *me = unsmob_music (m); + Music *elt = unsmob_music (me->get_property ("element")); + return elt->get_length ().smobbed_copy (); } - -ADD_MUSIC (Music_wrapper); - - -Moment -Music_wrapper::start_mom () const -{ - return element ()->start_mom (); -}