Fix out of range MIDI event error detection (duuuhhhhh).
git-svn-id: svn://localhost/ardour2/branches/3.0@3364 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0c25b2aa8e
commit
415f80dc9f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user