]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/beam-performer.cc
* flower
[lilypond.git] / lily / beam-performer.cc
index 70df79d95fe1ce563f3485eca75177ef6b433a8b..a7cd2547b1ca64053f0dda0f1405b685206c1eae 100644 (file)
@@ -3,8 +3,8 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1996--2004 Jan Nieuwenhuizen <janneke@gnu.org>
- */
+  (c) 1996--2005 Jan Nieuwenhuizen <janneke@gnu.org>
+*/
 
 #include "performer.hh"
 #include "audio-item.hh"
 #include "global-context.hh"
 #include "warn.hh"
 
-class Beam_performer : public Performer {
+class Beam_performer : public Performer
+{
 public:
   TRANSLATOR_DECLARATIONS (Beam_performer);
-  
+
 protected:
-  virtual bool try_music (Music *ev) ;
+  virtual bool try_music (Music *ev);
   virtual void start_translation_timestep ();
   virtual void process_music ();
   void set_melisma (bool);
@@ -34,7 +35,7 @@ Beam_performer::Beam_performer ()
   now_stop_ev_ = 0;
 }
 
-void 
+void
 Beam_performer::process_music ()
 {
   if (now_stop_ev_)
@@ -50,13 +51,12 @@ Beam_performer::process_music ()
     }
 }
 
-
 void
 Beam_performer::set_melisma (bool ml)
 {
   SCM b = get_property ("autoBeaming");
   if (!to_boolean (b))
-context ()->set_property ("beamMelismaBusy", ml ? SCM_BOOL_T :SCM_BOOL_F);
+    context ()->set_property ("beamMelismaBusy", ml ? SCM_BOOL_T :SCM_BOOL_F);
 }
 
 void
@@ -65,7 +65,7 @@ Beam_performer::start_translation_timestep ()
   start_ev_ = 0;
   now_stop_ev_ = 0;
 }
+
 bool
 Beam_performer::try_music (Music *m)
 {
@@ -86,6 +86,6 @@ Beam_performer::try_music (Music *m)
   return false;
 }
 
-ADD_TRANSLATOR (Beam_performer,"","",
-                 "beam-event","","","");
+ADD_TRANSLATOR (Beam_performer, "", "",
+               "beam-event", "", "", "");