2 slur-performer.cc -- implement Slur_performer
4 source file of the GNU LilyPond music typesetter
6 (c) 1996--2004 Jan Nieuwenhuizen <janneke@gnu.org>
9 #include "performer.hh"
10 #include "audio-item.hh"
11 #include "audio-column.hh"
12 #include "global-context.hh"
16 this is C&P from beam_performer.
19 class Slur_performer : public Performer {
21 TRANSLATOR_DECLARATIONS (Slur_performer);
24 virtual bool try_music (Music *ev) ;
25 virtual void start_translation_timestep ();
26 virtual void process_music ();
27 void set_melisma (bool);
34 Slur_performer::Slur_performer ()
43 Slur_performer::process_music ()
60 Slur_performer::set_melisma (bool ml)
62 context ()->set_property ("slurMelismaBusy", ml ? SCM_BOOL_T :SCM_BOOL_F);
66 Slur_performer::start_translation_timestep ()
73 Slur_performer::try_music (Music *m)
75 if (m->is_mus_type ("slur-event"))
77 Direction d = to_dir (m->get_property ("span-direction"));
92 ADD_TRANSLATOR (Slur_performer,"","",
93 "slur-event","","","");