From: Steven S. <ste...@co...> - 2005-03-24 15:56:26
|
> Two things to watch out for: > * In Java, bytes are signed. So if the range is 0..255 before, > casting it to a (Byte) will change that to -128..127. Thus, reading > patch.sysex[index] may yield negative numbers. I had to compensate in > my CZModel.getByte. This is what I want. How can I get this behavior in a model class? -----Original Message----- From: jsy...@li... [mailto:jsy...@li...] On Behalf Of Steven Schmidt Sent: Tuesday, March 22, 2005 6:00 PM To: jsy...@li... Subject: [Jsynthlib-devel] What is the JSL way to deal with negative param values? Hello - When a parameter has values in a range of say, -60 to +12 represented in the sysex as C4 to 0C, are there existing methods that understand those values? Is anyone aware of a synth editor that deals with this type of data? Thanks - Steve ------------------------------------------------------- This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click _______________________________________________ Jsynthlib-devel mailing list Jsy...@li... https://lists.sourceforge.net/lists/listinfo/jsynthlib-devel |