2 music-wrapper.cc -- implement Music_wrapper
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "music-wrapper.hh"
12 Music_wrapper::Music_wrapper (SCM x)
18 MAKE_SCHEME_CALLBACK(Music_wrapper,length_callback,1);
20 Music_wrapper::length_callback (SCM m)
22 Music * me = unsmob_music (m);
23 Music *elt = unsmob_music (me->get_property ("element"));
24 return elt->get_length ().smobbed_copy ();
28 Music_wrapper::element () const
30 return unsmob_music (get_property ("element"));
34 ADD_MUSIC (Music_wrapper);
38 Music_wrapper::start_mom () const
40 return element ()->start_mom ();