Fix out of range MIDI event error detection (duuuhhhhh).
authorDavid Robillard <d@drobilla.net>
Fri, 16 May 2008 22:00:14 +0000 (22:00 +0000)
committerDavid Robillard <d@drobilla.net>
Fri, 16 May 2008 22:00:14 +0000 (22:00 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@3364 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/midi_model.cc

index 462e7ba012350f3bc0038ffb2a49eaef823e0674..08fc5179f04d2d76e114454b806f7f06af8f0737 100644 (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;