How to Output CC *and* PB to different ports?

lezouave

2015-12-30 17:34:58

I am getting started with scripting in midi translator pro after using classic for some simple stuff.

I wish to input PB, (which is what the touch faders on the Steinberg CMC series send)

and then:
- output CCs to my DAW (or a generic destination) and
- output PB LSB x, MSB 0-13 back to the sending device to activate the LEDs. (where x=0, 1, 2, or 3 depending on the desired LED patterns)

What I've been able to do so far is:

Code: Select all

input: E9 00 pp

Rules: 
qq=pp*100
qq=qq/1050 //keep values <=13
qq=qq+1  //Make 1 the minimum instead of zero

output: E9 00 qq B0 01 pp
This works, but I have to filter out channel 10 in my DAW.

I am looking for a method that sends the data to the destinations separately, rather than sending both streams to both destinations.

Thanks for any help!

Steve

lezouave

2015-12-31 03:34:05

Well I'll be doggoned. That was easy.

I simply added a translator to take the input from the slider, modify its value, and set the output of that translator to the port I needed.

Code: Select all

Input: E9 00 pp
qq=pp*100
qq=qq/1050
qq=qq+1
Output: E9 00 qq
To specific port: MyMidiPort