Gen~ spline_interp

MuShoo's icon

Erm, just what is this object? The documentation for it (in all locations) appears to be exactly the same as Gen~ sah. Is it exactly the same? If it is, why have it? Is it similar, but different? If so, how so? Is it something else entirely?

It doesn't seem to take the same arguments as Sah, and I can't seem to make it a valid object when instantiating...

LiamCormacGould's icon

I believe its only for use inside the expr object. It's something to do with smooth controlled curves between points but I don't really know.

Wesley Smith's icon

@muShoo
Are you talking about an object named spline_interp? There's an object named interp that takes an argument named spline e.g. [interp spline].

Graham Wakefield's icon

Actually [interp @mode spline]. It is a four-point smoothing function based on spline functions (Breeuwsma catmull-rom spline). Have a look at gen~.interpolation.maxpat in the examples/gen folder for a patch that shows how the various interp modes are implemented internally.

MuShoo's icon

Nope, there's something in the max Gen~ object docs labelled 'spine_interp" with the exact same description as sah, but it doesn't seem to be a valid object. I'd guess it's just a weird docs typo?

Wesley Smith's icon

Which documentation page is this in? I'm not finding it right now.

pdelges's icon

spline_interp will be proposed in the autocompletion list. Create an instance, open the help ballon to get some help, click into the i to open the "gen~ Operators" page with a spline_interp reference in the Filter section (with the same smallish content).

Wesley Smith's icon

Thanks for the info. This has been fixed for a future release.

MuShoo's icon

Thanks Wesley! (And thanks Patrick for describing my exact method of coming across this).