Change short-indent behaviour.
[lilypond.git] / lily / lyric-combine-music.cc
blob7895e154a75eb536080c9034e0c1d1e469b54fc1
1 /*
2 lyric-combine-music.cc -- implement Lyric_combine_music
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
9 #include "music.hh"
11 struct Lyric_combine_music
13 public:
14 DECLARE_SCHEME_CALLBACK (length_callback, (SCM));
17 MAKE_SCHEME_CALLBACK (Lyric_combine_music, length_callback, 1);
18 SCM
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 ();