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"
11 #include "audio-item.hh"
12 #include "audio-column.hh"
13 #include "global-context.hh"
17 this is C&P from beam_performer.
20 class Slur_performer
: public Performer
{
22 TRANSLATOR_DECLARATIONS (Slur_performer
);
25 virtual bool try_music (Music
*ev
) ;
26 virtual void start_translation_timestep ();
27 virtual void process_music ();
28 void set_melisma (bool);
36 Slur_performer::process_music ()
52 Slur_performer::set_melisma (bool ml
)
54 daddy_context_
->set_property ("slurMelismaBusy", ml
? SCM_BOOL_T
:SCM_BOOL_F
);
58 Slur_performer::start_translation_timestep ()
70 Slur_performer::try_music (Music
*m
)
72 if (m
->is_mus_type ("slur-event"))
74 Direction d
= to_dir (m
->get_property ("span-direction"));
89 ENTER_DESCRIPTION (Slur_performer
,"","",
90 "slur-event","","","");
92 Slur_performer::Slur_performer ()