Fix InstrumentSwitch grob definition.
[lilypond.git] / lily / grace-music.cc
blobf92d4ebb8c960548f99fb018cc2743f5c62d3109
1 /*
2 grace-music.cc -- implement Grace_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"
10 #include "music-wrapper.hh"
12 class Grace_music
14 public:
15 DECLARE_SCHEME_CALLBACK (start_callback, (SCM));
18 MAKE_SCHEME_CALLBACK (Grace_music, start_callback, 1);
19 SCM
20 Grace_music::start_callback (SCM m)
22 Moment *l = unsmob_moment (Music_wrapper::length_callback (m));
23 Moment gl;
24 gl.grace_part_ = -(l->main_part_ + l->grace_part_);
25 return gl.smobbed_copy ();