summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_model.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/midi_model.cc')
-rw-r--r--libs/ardour/midi_model.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/midi_model.cc b/libs/ardour/midi_model.cc
index 08fc5179f0..863747c19f 100644
--- a/libs/ardour/midi_model.cc
+++ b/libs/ardour/midi_model.cc
@@ -102,7 +102,7 @@ MidiModel::const_iterator::const_iterator(const MidiModel& model, double t)
assert(x >= 0);
- if (y <= i->first.min() || y >= i->first.max()) {
+ if (y < i->first.min() || y > i->first.max()) {
cerr << "ERROR: Controller (" << i->first.to_string() << ") value '" << y
<< "' out of range [" << i->first.min() << "," << i->first.max()
<< "], event ignored" << endl;