From: Jeff W. <jww...@ya...> - 2004-09-09 02:16:57
|
Hiroo, I got my SysexSenders working and sending CC messages using the code you posted in your message last week. Everything was working great until I checked out another version of the source today. It looks like you made a change to the IPatchDriver interface and removed getChannel() and now I'm getting a compile error (see the line below in the send method for my SysexSender subclass "m.setMessage(ShortMessage.CONTROL_CHANGE, driver.getChannel() - 1, param, value);"). There are probably a number of ways to tweak this to get rid of the compile error but I'm hoping you can tell me the right way to fix it. Up till now I've been avoiding checking in my code because I didn't want to cause headaches for everybody else. I didn't want to include my code and then have others checking out a new version only to get compile errors in my drivers. But at this point I think I've gotten it close enough that it's probably more of a hindrance to everybody if I don't check it in. If my code had been checked in when you made this change, we would have been in sync and you would been alerted to the problem when you compiled. As soon as I can get this fixed, I can check in drivers and editors for both the Guitar POD and the Bass POD. What do you think? public void send(IPatchDriver driver, int value) { if (reverse) { value = 127 - value; } value = Math.min(127, value * multiplier); ShortMessage m = new ShortMessage(); try{ m.setMessage(ShortMessage.CONTROL_CHANGE, driver.getChannel() - 1, param, value); driver.send(m); } catch (InvalidMidiDataException e) { ErrorMsg.reportStatus(e); } } __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |