* loosened assertion about controller to UINT8_MAX allow for (real-world) nonstandard...
authorHans Baier <hansfbaier@googlemail.com>
Thu, 29 Jan 2009 00:18:20 +0000 (00:18 +0000)
committerHans Baier <hansfbaier@googlemail.com>
Thu, 29 Jan 2009 00:18:20 +0000 (00:18 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@4458 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/evoral/src/Sequence.cpp

index 6a860ac83324dfc5038b2380c616d6748db41629..87065d68da7950a8f00c60e186fcbfed97ce3171 100644 (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);