...
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?
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.