* lily/include/lily-guile.hh: many new ly_ functions. Thanks to
[lilypond.git] / lily / lyric-combine-music.cc
blob420677d9047f49b35d1fd098e261d8b47088c13a
1 /*
2 lyric-combine-music.cc -- implement Lyric_combine_music
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
10 #include "lyric-combine-music.hh"
11 #include "pitch.hh"
13 Lyric_combine_music::Lyric_combine_music ()
14 : Music ()
18 Moment
19 Lyric_combine_music::get_length () const
21 return get_music ()->get_length ();
24 Music*
25 Lyric_combine_music::get_music () const
27 SCM l = get_property ("elements");
28 if (!ly_pair_p (l))
29 return 0;
30 return unsmob_music (ly_car (l));
34 Music*
35 Lyric_combine_music::get_lyrics () const
37 SCM l = get_property ("elements");
38 if (!ly_pair_p (l))
39 return 0;
40 l = ly_cdr (l);
41 if (!ly_pair_p (l))
42 return 0;
43 return unsmob_music (ly_car (l));
47 ADD_MUSIC (Lyric_combine_music);