one CC for coarse and fine tune

Discuss Lemur and share techniques.
Phil999
Regular
Posts: 919
Joined: 11 Jan 2012 01:53

Re: one CC for coarse and fine tune

Post 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!
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
analog604
Regular
Posts: 262
Joined: 29 Dec 2011 15:40
Location: north east, usa

Re: one CC for coarse and fine tune

Post 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
Dashboard gear control templates: User 112 Idx :: LModIt Lite :: SVG image converter for Lemur Canvas
Phil999
Regular
Posts: 919
Joined: 11 Jan 2012 01:53

Re: one CC for coarse and fine tune

Post by Phil999 »

double post
Last edited by Phil999 on 06 Sep 2012 13:05, edited 1 time in total.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
Phil999
Regular
Posts: 919
Joined: 11 Jan 2012 01:53

Re: one CC for coarse and fine tune

Post 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.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
Post Reply