DIY sysex fader box status and questions.

ToAd tom.adam at thebigear.be
Sat Apr 21 14:17:32 CEST 2012


On 21/04/2012 9:41, Jay Vaughan wrote:
> I don't think you're going to lose too much accuracy by converting the 4 bytes to a word, and using it as a plain old number.  This number, if you get it, tells you what direction the knob is turned.  Don't put too much pressure on bit-ops, just convert to a word and use that word in your switch statement ..
OK, so i put the 2 bits for each pot together and make it a word? Isn't 
that the same as an int? So i end up with a value of 0 to 3. look at 
previous value and go from there. (can I put 4 bytes into 1 word? what 
is the benefit of doing this?)
Let's give it a try.
Cheers,
Tom


More information about the music-bar mailing list