ev_rect->property_y2() = y1 + floor(midi_stream_view()->note_height());
if (note->duration() == 0) {
- cerr << "MidiModel: WARNING: Discovered note with duration 0 and pitch" << note->note()
- << " at time " << note->time() << endl;
+ cerr << "MidiModel: WARNING: Discovered note with duration 0 and pitch"
+ << (int)note->note() << " at time " << note->time() << endl;
if (_active_notes) {
assert(note->note() < 128);
_active_notes[note->note()] = ev_rect;
}
assert(x >= 0);
- assert(y >= i->first.min());
- assert(y <= i->first.max());
+
+ if (y >= i->first.min() || y <= i->first.max()) {
+ cerr << "ERROR: Event value '" << y << "' out of range ["
+ << i->first.min() << "," << i->first.max() << "], ignored" << endl;
+ continue;
+ }
const MidiControlIterator new_iter(i->second->list(), x, y);