* 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:
parent
a5a3d39366
commit
a1234aa21e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user