]> git.donarmstrong.com Git - lilypond.git/blob - lily/lyric-combine-music.cc
* The grand 2005-2006 replace.
[lilypond.git] / lily / lyric-combine-music.cc
1 /*
2   lyric-combine-music.cc -- implement Lyric_combine_music
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1999--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #include "music.hh"
10 #include "pitch.hh"
11 #include "moment.hh"
12
13 struct Lyric_combine_music
14 {
15 public:
16   DECLARE_SCHEME_CALLBACK (length_callback, (SCM));
17 };
18
19 MAKE_SCHEME_CALLBACK (Lyric_combine_music, length_callback, 1);
20 SCM
21 Lyric_combine_music::length_callback (SCM m)
22 {
23   Music *me = unsmob_music (m);
24   Music *melody = unsmob_music (scm_car (me->get_property ("elements")));
25   return melody->get_length ().smobbed_copy ();
26 }