Use scalar instead of embedded_scm for context mod overrides.
[lilypond/mpolesky.git] / lily / lyric-combine-music.cc
blobc47a6e3a99ffef56479f4539cd0a8a926db16262
1 /*
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>
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 ();