13
0

* loosened assertion about controller to UINT8_MAX allow for (real-world) nonstandard events

git-svn-id: svn://localhost/ardour2/branches/3.0@4458 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Hans Baier 2009-01-29 00:18:20 +00:00
parent a5a3d39366
commit a1234aa21e

View File

@ -386,7 +386,11 @@ Sequence::control_to_midi_event(boost::shared_ptr<Event>& ev, const ControlItera
assert(iter.list.get());
assert(iter.list->parameter().channel() < 16);
assert(iter.list->parameter().id() <= INT8_MAX);
assert(iter.y <= INT8_MAX);
cerr << "CONTROL with id :" << iter.list->parameter().id() << " : " << iter.y << endl;
assert(iter.y <= UINT8_MAX);
if (iter.y > INT8_MAX) {
cerr << "Warning: Found non-standard conforming controller value (> 127)" << endl;
}
ev->time() = iter.x;
ev->realloc(3);