2 beam-performer.cc -- implement Beam_performer
4 source file of the GNU LilyPond music typesetter
6 (c) 1996--2006 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 #include "translator.icc"
18 class Beam_performer : public Performer
21 TRANSLATOR_DECLARATIONS (Beam_performer);
24 virtual bool try_music (Music *ev);
25 void start_translation_timestep ();
26 void process_music ();
27 void set_melisma (bool);
34 Beam_performer::Beam_performer ()
42 Beam_performer::process_music ()
58 Beam_performer::set_melisma (bool ml)
60 SCM b = get_property ("autoBeaming");
62 context ()->set_property ("beamMelismaBusy", ml ? SCM_BOOL_T : SCM_BOOL_F);
66 Beam_performer::start_translation_timestep ()
73 Beam_performer::try_music (Music *m)
75 if (m->is_mus_type ("beam-event"))
77 Direction d = to_dir (m->get_property ("span-direction"));
88 ADD_TRANSLATOR (Beam_performer, "", "",
89 "beam-event", "", "");