Quote:
Originally Posted by mespotine
Ohh, nice!
If you get this working, could you try to add that to SWS or the JS-extension from Julian? This would be really really nice to have access to
|
I'm right now implementing this for my Live plugin, which is meant to recall track and plugin settings based on presets. I'm using the sws code as a basis (actually the cfillion fork with cmake added). I'll see what I can do to make this available for others. However the functions seems to be buggy:
// val/valhw are used for actions learned with MIDI/OSC.
// val = [0..127] and valhw = -1 for MIDI CC,
// valhw >=0 for MIDI pitch or OSC with value = (valhw|val<<7)/16383.0,
// NON_API: bool onAction(KbdSectionInfo *sec, int command, int val, int valhw, int relmode, HWND hwnd);
The formula value = (valhw|val<<7)/16383.0 is only working for values from 0 to 1. This makes sense for MIDI pitch, but not for OSC. Additionally it would be very nice to have raw int values working as well!