12-16-2023, 09:04 PM
(12-16-2023, 08:39 PM)yrn1 Wrote: Sorry ‘scale’ is a bit an overloaded term. I want to use a CV input to ‘attenuate’ a value. So I have some mapping stuff going on and at some point I want to use a CV input to attenuate the value of another row.. Something like
CALC MUL 01:02
where row 01 is a CV input and row 02 is anything I want attenuated by the value of the row 01 CV input. This, of course, only works if row 1 (CV) would have a value between 0 and 1. But instead everything has a value between 0 and FFF.
So how could this be done?
I still don't get exactly what you write. Where does the 0 / 1 come from. To attenuate something only a multiplication is most probably not the perfect thing as it would more amplify (except for if multiplying with something below 1 using the .1 multiplies).
To range something you would more need a dual calculation which is not directly possible here as the 'in between' results can be values with a decimal part and values that are higher than FFF. Output = Input / 4095 * NewMaximum
To attenuate I would suggest the Calc Range command which uses the former row as the input value and the 2 parameters would be the min and max value.
If you use 0 as the min value and lets say 80 as the max value, then the input of 0-FFF would be 'scaled' to 0-80.
Code:
00 CV IN1 //CV Input as source, no destination
01 CALC RNG =0VA > //Input of the former row (row 00) being 'ranged' between 0 and the value of variable A
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!

