2 lyric-combine-music.cc -- implement Lyric_combine_music
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
11 struct Lyric_combine_music
14 DECLARE_SCHEME_CALLBACK (length_callback
, (SCM
));
17 MAKE_SCHEME_CALLBACK (Lyric_combine_music
, length_callback
, 1);
19 Lyric_combine_music::length_callback (SCM m
)
21 Music
*me
= unsmob_music (m
);
22 Music
*melody
= unsmob_music (scm_car (me
->get_property ("elements")));
23 return melody
->get_length ().smobbed_copy ();