2 music-wrapper.cc -- implement Music_wrapper
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 #include "music-wrapper.hh"
13 MAKE_SCHEME_CALLBACK (Music_wrapper, start_callback, 1);
15 Music_wrapper::start_callback (SCM m)
17 Music *me = unsmob_music (m);
18 Music *elt = unsmob_music (me->get_property ("element"));
20 return elt->start_mom ().smobbed_copy ();
22 return Moment ().smobbed_copy ();
25 MAKE_SCHEME_CALLBACK (Music_wrapper, length_callback, 1);
27 Music_wrapper::length_callback (SCM m)
29 Music *me = unsmob_music (m);
30 Music *elt = unsmob_music (me->get_property ("element"));
32 return elt->get_length ().smobbed_copy ();
34 return Moment (0).smobbed_copy ();