2 event.cc -- implement Event
4 source file of the GNU LilyPond music typesetter
6 (c) 1996--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
12 MAKE_SCHEME_CALLBACK(Event,length_callback,1);
14 Event::length_callback (SCM m)
16 Music* me = unsmob_music (m);
17 Duration *d = unsmob_duration (me->get_property ("duration"));
22 mom = d->get_length ();
24 return mom.smobbed_copy();
30 if (!ly_c_procedure_p (length_callback_))
32 length_callback_ = length_callback_proc;
38 Key_change_ev::Key_change_ev (SCM x)
43 Key_change_ev::transpose (Pitch p)
45 SCM pa = get_property ("pitch-alist");
46 set_property ("pitch-alist", ly_transpose_key_alist (pa, p.smobbed_copy ()));
51 ADD_MUSIC (Key_change_ev);