interpolation methods

Roman Thilenius's icon

i am going to make some abstractions for realtime interpolation
of floats.

does anyone have a simple patch for me which does something like
a [slide~] for int/float?

and in the same context: is there eventually way to have somehow
a "next $f1" in [expr] so that you dont have to build the
loop yourself?

-110

Gregory Taylor's icon

Quote:...does anyone have a simple patch for me which does something like
a [slide~] for int/float?

um... the slide object?

mzed's icon

Gregory Taylor wrote on Fri, 07 August 2009 16:18Quote:...does anyone have a simple patch for me which does something like
a [slide~] for int/float?

um... the slide object?

You could also use CNMAT's list-interpolate on one-item lists.

mz

Alexandre's icon

Don't know if this helps, but i just had a look at vb.biquad (biquad for int/floats), i really like it.

FP's icon

you'd find something in this patch :http://pan-etc.net/res/dev/Preset-v5.zip

in the recall&interpolation patcher.

f./

Roman Thilenius's icon

a biquad would be cool as patch - that would be a perfect
solution then.

as slide (must be new in max5?) i use something like

[expr ((($f1)+($f2*$f3))/($f3+1))]

where the output goes to $f2 again.

i dont exspect to be able to have different bezier models in
one line of code, but maybe anyone have an idea how to make
a better slide patch? (with more than linear interpolation that is)

-110

Roman Thilenius's icon

slide with up/down arguments actually:

[expr ((($f1)+($f2*$f3))/($f3+1))*($f1>=$f2)+((($f1)+($f2*$f4))/($f4+1))*($f1

Luke Hall's icon

If you're looking for the [slide] equation then you will want to try [expr ($f1-$f2)/$f3+$f2]. Although that is for one slide value for both up and down movement.

lh