Page 3 of 3

Re: one CC for coarse and fine tune

Posted: 06 Sep 2012 07:28
by Phil999
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:

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;
}
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: :D

Code: Select all

cMain.Knob.x=v*(1/VALRES);
must be

Code: Select all

cMain.Knob.x=val*(1/VALRES);
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!

Re: one CC for coarse and fine tune

Posted: 06 Sep 2012 12:40
by analog604
excellent news, good work! :D

I've been preparing an update to 'Flexi14' : finally have Bidirectional standard and 14-bit NRPN control working. I was puzzled why it didn't work and it was my own error because I had not configured Lemur to listen on the right MIDI interface/channel!
:oops:

Are you going to post the Diva control when it is ready?
-J

Re: one CC for coarse and fine tune

Posted: 06 Sep 2012 13:01
by Phil999
double post

Re: one CC for coarse and fine tune

Posted: 06 Sep 2012 13:04
by Phil999
analog604 wrote:Are you going to post the Diva control when it is ready?
of course. Will take a week or so, maybe even longer. Not so much time in the next days.

Today is a lucky day for me. Got a phone call that we got a new music room, the release of the PPG WaveGenerator app, and I finished the LEGO clock which is ticking for half an hour (not my invention, I found an instruction on the web). And of course the last problem solved for the Diva control.