what does pp signify?

Youtube users asks:

 

https://www.youtube.com/watch?v=dt6KgS6L0xI&lc=z22ydzfbam3pcridtacdp433lojyjxixovkl4pmoebtw03c010c

Greasy Bumpkin3 hours agoHighlighted comment

what does pp signify? I am trying to convert 1 CC message into 2 CC's, with a different range of data on the output that on the input. I'll explain below:

CC 01: 0-127 > Translator > CC 02:0-96 CC 01: 0-127 > Translator > CC 03:96-0 Basically I'm making a crossfader, how do I input these variables? this program seems to be powerful but it's a hell of a learning curve

pp is a local variable. By local, it means it is only accessible by the defined incoming event and not with other incoming events. This is opposed to global variables which are in-scope (accessible) by all events.

In general you should use local variables if you can to avoid collision with other translators and only use global variables if you need them to be consistent across your project and to retain their values (unless you change them). All of this can be found in the manual by pressing F1 (or help) within Bome MIDI translator Pro.

Now to your question about your cross-fader. Basically you need two translators with the same incoming value

Control change on Channel 1 CC2 set pp to value

The difference will be that each translator will have a different outgoing action and that you will need to establish different rules to define the final output.

Rules for the first translator. This will convert incoming value pp of 0-127 to output value of 0-96. We call this scaling and we have put a Youtube video out on how to do that. So we don’t interfere with the incoming value of pp, the output will be local variable qq.

// Desired ouput range 0-96=97

qq=pp*97

// Desired input range 0-127 = 128
qq=qq/128

Output Control change channel 1 CC 3 value qq

For the second translator we will modify the above by adding one more rule to reverse the direction of the knob

qq=pp*97
qq=qq/128
qq=96-qq

That’s it. I’ve posted the project file here.

 


Attachments:
1503149396889_crossfader-2017-08-19.bmtp