DescriptionFix spurious error playing initial grace notes (issue 1412).
This happens because the MIDI output starts at tick 0, regardless of when the first event is. Initial grace notes start start at negative ticks, so midi_walker::output_event thinks they're out of order. Fixed by starting at the first event.
Note that if a piece starts with a rest, the first event will be the first note, so we'll now skip the rest. To preserve initial rests, change the last line to:
last_tick_ = items_.empty () ? 0 : min(items_[0]->audio_column_->ticks (), 0);
Patch Set 1 #
MessagesTotal messages: 3
|