projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c25b2a
)
Fix out of range MIDI event error detection (duuuhhhhh).
author
David Robillard
<d@drobilla.net>
Fri, 16 May 2008 22:00:14 +0000
(22:00 +0000)
committer
David 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
patch
|
blob
|
history
diff --git
a/libs/ardour/midi_model.cc
b/libs/ardour/midi_model.cc
index 462e7ba012350f3bc0038ffb2a49eaef823e0674..08fc5179f04d2d76e114454b806f7f06af8f0737 100644
(file)
--- 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;