mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue