Re: one CC for coarse and fine tune
Posted: 06 Sep 2012 07:28
I'm comparing the testset-template (where feedback is working) with the SimpleNRPN-biDirCtrl-1a-template (where feedback is not quite working). There are some differences of course, but I couldn't yet figure out what is missing in the ccListener script. I even imported the mio container into the latter template, but as expected it is not that simple.
Here is the ccListener script:
It is not in red, and it does receive NRPN MIDI. The knob does not go to zero of course, it has those said inaccurate values <127. Ah, now I see it, the values go from 0 to 127, 0 to 127, 0 to 127, and so on, or 127 to 0, 127 to 0, etc. We are very close. I post this now and investigate further.
EDIT:
must be
Now I have everything I need to finally complete the Diva template. This wouldn't have been possible without help from the forum, especially from Jay. Thank you all, I am very happy now!
Here is the ccListener script:
Code: Select all
decl cc=MIDI_ARGS[0],v=MIDI_ARGS[1];
if(cc==0x62) nrx_adx_l=v;
else if(cc==0x63) nrx_adx_m=v;
else if(cc==0x26)
{
nrx_v_l=v;
decl n=(nrx_adx_m<<7) | nrx_adx_l;
decl val=(nrx_v_m<<7) | nrx_v_l;
cMain.myParam.x=n*(1/VALRES);
cMain.Knob.x=v*(1/VALRES);
supressReTx=1;
}
else if(cc==0x06)
{
nrx_v_m=v;
}
EDIT:
Code: Select all
cMain.Knob.x=v*(1/VALRES);
Code: Select all
cMain.Knob.x=val*(1/VALRES);