X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmidi-walker.cc;h=782c3e2932ea3d6cbf10066f43b82547746c064b;hb=98b5b6c845d9c34d9f1342f60f799569b60a5196;hp=cef858c92768ebacf1374fb6d8f9bddb418a6536;hpb=3ee551fa4f2a2c3736a06f9f85f29b9f7bd89818;p=lilypond.git diff --git a/lily/midi-walker.cc b/lily/midi-walker.cc index cef858c927..782c3e2932 100644 --- a/lily/midi-walker.cc +++ b/lily/midi-walker.cc @@ -70,6 +70,7 @@ void Midi_walker::do_start_note (Midi_note *note) { Audio_item *ptr = items_[index_]; + assert (note->audio_ == ptr); int stop_ticks = int (moment_to_real (note->audio_->length_mom_) * Real (384 * 4)) + ptr->audio_column_->ticks (); @@ -114,9 +115,6 @@ Midi_walker::do_start_note (Midi_note *note) } } -/** - Output note events for all notes which end before #max_mom# -*/ void Midi_walker::do_stop_notes (int max_ticks) {