diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2008-05-16 23:50:29 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2008-05-16 23:50:29 +0000 |
commit | 415131ef53d7d3d32dd36985548ad95906025ed5 (patch) | |
tree | 2b19aa698e99628b68b19058920a8c4ff5d9936e | |
parent | 7666a4a5ff853b0a8e03ffbb4208e36693bf254f (diff) |
* fix out of range MIDI event detection
git-svn-id: svn://localhost/ardour2/branches/3.0@3366 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/ardour/midi_model.cc | 2 |
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; |