abhunkin
Member
 
 MIDI-OX Rules!

Posts: 35
|
 |
Converting Studiomix Endless Dial NRPN to CC
« on: Sep 29th, 2005, 3:15pm » |
Quote Modify
|
I've developed a MIDIOx map to convert Studiomix *slider* data NRPN to CC. Nine sliders - no problem. However, Studiomix also has lots of endless dials that put out (in NRPN format) only a 1 each "click" clockwise, or a 16383 when moved a notch counterclockwise. I'd like to convert the dial output to CC data - incrementing/decrementing as appropriate, and constrained to the range of 0-127, (initialization to 0). I know a script is necessary for this. Three questions: 1) Since I've already got a basic map for the sliders, and the endless dials would be in all cases an add-on to the slider operation, should I make a script that handles *everything*, or just one for the dials (triggered from the already running map in MIDIOx)? 2) If the latter, which runs first - the map or the script; or, in short, how do they interact? (One option I'm sure it to run the map from within the script.) 3) Can someone help me with the script? I'd like to do it in JScript, assuming that all current Windows machines will already have the software needed. I also familiar with the script Breath2NRPN.js, and assume this can be used as a starting point. Here are the necessary parameters: A set of endless dials reside at NRPN 1500-1507; they need to be converted to CC 30-37 (and as mentioned above, constrained to the range 0-127). Recall that the only values input are 1 (= increment 1) and 16383 (= decrement 1). There's another set from NRPN 500-507 to be converted similarly to CC 40-47. Also, a single NRPN dial at 4501 to CC 38 and a single NRPN at 4500 to CC48. I'd appreciate any and all help with this project. Art Hunkins abhunkin@uncg.edu
|