set a float range to be both higher and lower than itself (solved)

Wil's icon

I would like to have a float that begins lower than itself when at 0. then at some point transitions to a number that I set and begins to be higher than itself until it reaches the upper value.

for example:

if the range is to 0.-40.

I would like to 0 to equal -10. and smoothly transition 40 = +50.

these upper and lower ranges should be dynamically adjustable


Wil's icon

weirdness is with slider object

if low value of slider is -10

sending 0 outputs -10

have to offset value going into slider

Max Patch
Copy patch and select New From Clipboard in Max.

Source Audio's icon

I am not sure about the rules .

to scale input 0 ~ 40 to -10 ~ 50. is no problem.

what when input exceeds set upper scale range ?

Wil's icon

first. it will never go below zero.

I am testing different upper ranges (distances) of the ultrasonic sensors to play scales.

and the low range gets down to 5-8cm so I need that low offset.

then I am just tweaking the upper range when sometimes doesn't reach the top note of the scale

//

second. the problem I resolved was that I didn't know slider negative numbers offset the input of the slider - I'll just use single multislider - this is purely visual so I can see the slider move as I fiddle with the ultrasonic

thanks - clip works for changing how much distance I want to detect