Update Fader from 14 bit CC

Discuss problems and solutions.
Post Reply
pisco
Newbie
Posts: 5
Joined: 08 Mar 2014 13:32

Update Fader from 14 bit CC

Post by pisco »

Hi,

I try to update a fade with incoming 14 bit Midi CC, e.g. Moog Sub Phatty Knobs can send 14 bit Midi (BTW, send is no problem).
I tried the following:

Code: Select all

...
lsb=19
msb=51
...
decl chn=MIDI_ARGS[2],cc=MIDI_ARGS[0],v=MIDI_ARGS[1];

if ( cc == lsb) {

 x = v*128/16383;
}

if ( cc == msb) {
 decl this_x = getexpression(getobject(),'x');
 x =  this_x+(v/16383);
}

But something seems wrong, the fader acts kind of 'wonky' or 'slipping'. Any hint what's wrong?
pisco
Newbie
Posts: 5
Joined: 08 Mar 2014 13:32

Re: Update Fader from 14 bit CC

Post by pisco »

Just to add a little more background info: my goal is to remap a incoming 14bit Midi CC (16384 values for a Parameter) like that from Moog Sub Phatty ( Just a pair of two controler data) to a different Synth iVCS3 (iOS/iPad), which requires a different format in NRPN ( CC 99 and 98 to address the Parameter and CC 6 and 38 for values ). I got to manage the Lemur fader to send the values correctly, but now the Lemur fader should listen to the incoming Sub Phatty values to change y of the fader. Once this is done from my understanding the mapping should be done, as the Lemur fader send outgoing messages on change of x.

regards
Post Reply