From: Frankie F. <jsy...@te...> - 2011-09-26 23:01:03
|
I am improving the TX81z driver so that you can request individual patches, banks and performances. This is using the midi remote control button presses to simulate the user selecting the patch/performance. To get a performance out, I think its unavoidable that some sysex that I don't need gets transmitted on the way. What do you reckon is the best way to discard sysex? The way patch reception works is that the SysexGetDialog clears the sysex input queue then fires off the midi sysex message(s) that the driver creates. When the user clicks accept, it then pastes any received data into the patch array, which on the way calls createPatches which can be overridden by the driver. So my two options are: * clear the sysex input queue within the driver after I have triggered the extraneous sysex however I think this may introduce a race condition as to whether the sysex gets picked up into the input queue or not. Also the function to clearthe input queue is not visible outside the package (although this could of course be changed). * the alternative could be to override createPatches and write something to discard the extraneous sysex there. any thoughts? frankie |