08-21-2024, 09:45 PM
I was fooling around with the mapping thinking I definitely was beginning to understand it, but I'm having some trouble with this scenario:
I would like to globally transpose if my source is above a certain threshold. I'm using an I2C fader.
So I get the value from the fader:
Then I set my variables up. B is the threshold value, C is the transpose value and D is transpose at 0.
Then I do my comparisons
I first did the logic for the slider above the threshold, which worked. Then I did the value below the threshold to set the transpose to 0, which also worked, but if I do both it doesn't work.
The setup I wrote here sets the transpose correctly when the fader is up, but the bottom position sets the transpose to minimum value (-128).
If I swap the CALC PASS steps around, the 0 transpose works (but in the upper position), but the bottom position now gives me -128 transpose.
I would like to globally transpose if my source is above a certain threshold. I'm using an I2C fader.
So I get the value from the fader:
Code:
I2C SCCV #8 > SETV V A SRCThen I set my variables up. B is the threshold value, C is the transpose value and D is transpose at 0.
Code:
VAR # B #73A
VAR # C #80F
VAR # D #88FThen I do my comparisons
Code:
CALC IF <= VAVB
CALC IF > VAVB
CALC PASS 14VC > GLOB TPS
CALC PASS 15VD > GLOB TPSI first did the logic for the slider above the threshold, which worked. Then I did the value below the threshold to set the transpose to 0, which also worked, but if I do both it doesn't work.
The setup I wrote here sets the transpose correctly when the fader is up, but the bottom position sets the transpose to minimum value (-128).
If I swap the CALC PASS steps around, the 0 transpose works (but in the upper position), but the bottom position now gives me -128 transpose.

