08-21-2024, 10:10 PM
(08-21-2024, 09:45 PM)visti Wrote: 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:
Code:I2C SCCV #8 > SETV V A SRC
Then 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 #88F
Then I do my comparisons
Code:CALC IF <= VAVB
CALC IF > VAVB
CALC PASS 14VC > GLOB TPS
CALC PASS 15VD > GLOB TPS
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 think it is pass value or zero so 2 lines and one would in the end overrule the first one.
You might put the latter one also around skip conditions so that always only one of the 2 lines is being executed.
PLEASE use the search function if something have been asked or discussed before.
Every (unnessesary) forum support means less time to develop! But of course, i am here to help!
Every (unnessesary) forum support means less time to develop! But of course, i am here to help!

