X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fgrace-music.cc;h=899dae7dcff1c55e582e93133db6da566845cc24;hb=3d979b464ff0db6fd66573ef6249ba0088173bf0;hp=9121df5ff93728c4c588bfe1980751dc7e0f0dd2;hpb=fc3e875d6bf06f0680e897faffdcab36ad975a03;p=lilypond.git diff --git a/lily/grace-music.cc b/lily/grace-music.cc index 9121df5ff9..899dae7dcf 100644 --- a/lily/grace-music.cc +++ b/lily/grace-music.cc @@ -1,38 +1,26 @@ -/* - grace-music.cc -- implement Grace_music - - source file of the GNU LilyPond music typesetter - - (c) 1999--2001 Han-Wen Nienhuys - - */ +/* + grace-music.cc -- implement Grace_music -#include "grace-music.hh" -#include "grace-iterator.hh" + source file of the GNU LilyPond music typesetter -void -Grace_music::compress (Moment) -{ - -} + (c) 1999--2008 Han-Wen Nienhuys +*/ -Moment -Grace_music::length_mom () const -{ - return 0; -} +#include "music.hh" +#include "music-wrapper.hh" -Grace_music::Grace_music () +class Grace_music { - set_mus_property ("iterator-ctor", - Grace_iterator::constructor_cxx_function); -} +public: + DECLARE_SCHEME_CALLBACK (start_callback, (SCM)); +}; -Grace_music::Grace_music (SCM p) - : Music_wrapper (p) +MAKE_SCHEME_CALLBACK (Grace_music, start_callback, 1); +SCM +Grace_music::start_callback (SCM m) { - set_mus_property ("iterator-ctor", - Grace_iterator::constructor_cxx_function); + Moment *l = unsmob_moment (Music_wrapper::length_callback (m)); + Moment gl; + gl.grace_part_ = -(l->main_part_ + l->grace_part_); + return gl.smobbed_copy (); } - -ADD_MUSIC (Grace_music);