slewing max numbers

R_Gol's icon

It might be very basic question but I stuck in doing so:

How can I slew max numbers tht controling a fader:

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

Thanks

Source Audio's icon
Roman Thilenius's icon

tons of options, but assuming that the question is specifically about the line object.

well, interpolation between quantized input values already works, which you can see when using 2000ms instead of 20ms.

now the question is which kind of additional delay/hysteresis and which type of additional curve/distortion of those subranges between current value and next value you are looking for?

R_Gol's icon

I'm looking for interpolation between two values that will avoid the producing of clicks (for controling an amplitude)

using [$1 20) into [line~] is working great but when using line without the ~ sign it is not happening as it should

Source Audio's icon

because it can not.

you must use something that smooths signal, not numbers

Roman Thilenius's icon

you could use both in parallel, line for the slider and and line~ for the DSP part, but it will still click when the direction changes.

to smooth control signals you´d use lowpass filtering such in onepole~ or slide~.

lucas's icon

if you want to smooth numbers with line you can use a metro :

i'm not so sure it's possible to smooth numbers without a metro somewhere (or gen)

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


lucas's icon

it kinda works without a metro but not really

Holland Hopson's icon

This approach stores the previous value so that line always starts at the right place. (Note that you can still get discontinuities if the new values arrive before the line is finished.)

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