diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2009-01-29 00:18:20 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2009-01-29 00:18:20 +0000 |
commit | a1234aa21e83cc4e22866e146c88f910a0494945 (patch) | |
tree | 94992e0a1fc6e3c9fcb5202fa45c9aab5e82d2f4 /libs | |
parent | a5a3d39366e16ae7a677c0c46698159694c50b01 (diff) |
* 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
Diffstat (limited to 'libs')
-rw-r--r-- | libs/evoral/src/Sequence.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/evoral/src/Sequence.cpp b/libs/evoral/src/Sequence.cpp index 6a860ac833..87065d68da 100644 --- a/libs/evoral/src/Sequence.cpp +++ b/libs/evoral/src/Sequence.cpp @@ -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); |