]> git.donarmstrong.com Git - lilypond.git/blob - lily/music-wrapper.cc
* scm/define-music-types.scm (music-descriptions): don't use
[lilypond.git] / lily / music-wrapper.cc
1 /*
2   music-wrapper.cc -- implement Music_wrapper
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1998--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #include "music-wrapper.hh"
10
11 #include "music.hh"
12
13
14 MAKE_SCHEME_CALLBACK (Music_wrapper, start_callback, 1);
15 SCM
16 Music_wrapper::start_callback (SCM m)
17 {
18   Music *me = unsmob_music (m);
19   Music *elt = unsmob_music (me->get_property ("element"));
20   return elt->start_mom ().smobbed_copy ();
21 }
22
23 MAKE_SCHEME_CALLBACK (Music_wrapper, length_callback, 1);
24 SCM
25 Music_wrapper::length_callback (SCM m)
26 {
27   Music *me = unsmob_music (m);
28   Music *elt = unsmob_music (me->get_property ("element"));
29   return elt->get_length ().smobbed_copy ();
30 }
31