]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/midi-walker.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / midi-walker.cc
index 1223133d13294e087343769cfa038de2565d7947..13bf59db8c2e4be028491e5966c1bf0b1b1e490b 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
   Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
@@ -58,7 +58,7 @@ Midi_walker::do_start_note (Midi_note *note)
   Moment stop_mom = note->get_length () + ptr->audio_column_->at_mom ();
 
   bool play_start = true;
-  for (int i = 0; i < stop_note_queue.size (); i++)
+  for (vsize i = 0; i < stop_note_queue.size (); i++)
     {
       /* if this pith already in queue */
       if (stop_note_queue[i].val->get_pitch () == note->get_pitch ())
@@ -131,9 +131,7 @@ Midi_walker::output_event (Moment now_mom, Midi_item *l)
     start with graces
   */
   if (delta_t < Moment (0))
-    {
-      delta_t = Moment (0);
-    }
+    delta_t = Moment (0);
 
   track_->add (delta_t, l);
 }
@@ -161,11 +159,11 @@ Midi_walker::process ()
 bool
 Midi_walker::ok () const
 {
-  return index_ <items_->size ();
+  return index_ < items_->size ();
 }
 
 void
-Midi_walker::operator++ (int)
+Midi_walker::operator ++ (int)
 {
   assert (ok ());
   index_++;