From: Joe E. <jo...@em...> - 2005-05-11 07:52:04
|
So... I just started trying to make a BankDriver, and I've got some questions. In this case, there's no way to request an entire bank. Instead, you have to issue a series of requests for individual patches. I'm sure that there are plenty of other devices like this. First question: Is there some way of "throttling" or flow-controlling the sending of requests. If I send out 100 single-patch requests all rapid-fire, the hardware device gets confused and doesn't end up sending 100 single patches. I need to send a request, wait for the patch to come, send another request, wait for the patch to come, etc. Is there a way to do this? Second question: Since my bank data is composed of multiple single patches, the bank data matches my sysexID from my SingleDriver. So, the banks are being recognized as single patches. Do I have to override acceptsPatch(Patch p) in my SingleDriver like: boolean acceptsPatch(Patch p) { return(super.acceptsPatch(p) && p.getMessages().length == 1); } and do similar in the BankDriver? Is there an easier way? The patchSize variable would come in handy here, but the patches on this device vary in size. - Joe |