I'm not familiar with pbp syntax but try something like this IF...THEN statement in place of yours--
IF RESULT[J] = ADRES THEN NoCHANGE
CHANGE RESULT[J] = ADRES
/calculate mididata :see below
/send mididata
NoCHANGE NEXT J
To convert your AD input to proportional value between 0 and 127---
/this is simiiar to Farenheit to Centigrade temp conversion
You need these values from when you calibrate your pots. JCALLOW, JCALHI
are values received @ CALIBRATE BUTTON1. BUTTON2
JMIDIVALUE=127(ADRES - JCALLOW)/(JCALHI - JCALLOW)
Bookmarks