Update Fader from 14 bit CC
Posted: 25 Nov 2015 23:27
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:
But something seems wrong, the fader acts kind of 'wonky' or 'slipping'. Any hint what's wrong?
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);
}