2 slur-performer.cc -- implement Slur_performer
4 source file of the GNU LilyPond music typesetter
6 (c) 1996--2007 Jan Nieuwenhuizen <janneke@gnu.org>
9 #include "performer.hh"
10 #include "audio-item.hh"
11 #include "audio-column.hh"
12 #include "global-context.hh"
13 #include "stream-event.hh"
16 #include "translator.icc"
19 this is C&P from beam_performer.
22 class Slur_performer
: public Performer
25 TRANSLATOR_DECLARATIONS (Slur_performer
);
28 void start_translation_timestep ();
29 void process_music ();
30 void set_melisma (bool);
32 DECLARE_TRANSLATOR_LISTENER (slur
);
34 Stream_event
*start_ev_
;
35 Stream_event
*now_stop_ev_
;
39 Slur_performer::Slur_performer ()
47 Slur_performer::process_music ()
63 Slur_performer::set_melisma (bool ml
)
65 context ()->set_property ("slurMelismaBusy", ml
? SCM_BOOL_T
: SCM_BOOL_F
);
69 Slur_performer::start_translation_timestep ()
75 IMPLEMENT_TRANSLATOR_LISTENER (Slur_performer
, slur
);
77 Slur_performer::listen_slur (Stream_event
*ev
)
79 Direction d
= to_dir (ev
->get_property ("span-direction"));
87 ADD_TRANSLATOR (Slur_performer
,