13
0

* fix out of range MIDI event detection

git-svn-id: svn://localhost/ardour2/branches/3.0@3366 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Hans Baier 2008-05-16 23:50:29 +00:00
parent 7666a4a5ff
commit 415131ef53

View File

@ -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;