2 music-wrapper.cc -- implement Music_wrapper
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #include "music-wrapper.hh"
14 MAKE_SCHEME_CALLBACK (Music_wrapper, start_callback, 1);
16 Music_wrapper::start_callback (SCM m)
18 Music *me = unsmob_music (m);
19 Music *elt = unsmob_music (me->get_property ("element"));
20 return elt->start_mom ().smobbed_copy ();
23 MAKE_SCHEME_CALLBACK (Music_wrapper, length_callback, 1);
25 Music_wrapper::length_callback (SCM m)
27 Music *me = unsmob_music (m);
28 Music *elt = unsmob_music (me->get_property ("element"));
29 return elt->get_length ().smobbed_copy ();