]> git.donarmstrong.com Git - lilypond.git/blob - lily/lyric-combine-music.cc
* flower
[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--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #include "music.hh"
10 #include "pitch.hh"
11
12 struct Lyric_combine_music
13 {
14 public:
15   DECLARE_SCHEME_CALLBACK (length_callback, (SCM));
16 };
17
18 MAKE_SCHEME_CALLBACK (Lyric_combine_music, length_callback, 1);
19 SCM
20 Lyric_combine_music::length_callback (SCM m)
21 {
22   Music *me = unsmob_music (m);
23   Music *melody = unsmob_music (scm_car (me->get_property ("elements")));
24   return melody->get_length ().smobbed_copy ();
25 }