]> git.donarmstrong.com Git - lilypond.git/blob - lily/grace-music.cc
* scm/music-functions.scm (has-request-chord): don't use
[lilypond.git] / lily / grace-music.cc
1 /*   
2      grace-music.cc --  implement Grace_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
10 #include "music.hh"
11 #include "music-wrapper.hh"
12
13 class Grace_music
14 {
15 public:
16   DECLARE_SCHEME_CALLBACK(start_callback, (SCM));
17 };
18
19 MAKE_SCHEME_CALLBACK(Grace_music, start_callback, 1);
20 SCM
21 Grace_music::start_callback (SCM m) 
22 {
23   Moment *l = unsmob_moment (Music_wrapper::length_callback (m));
24   Moment gl;
25   gl.grace_part_ = -(l->main_part_ + l->grace_part_ );
26   return gl.smobbed_copy ();
27 }