Forums > MaxMSP

Function – Modify Curve Shape between to Breakpoints with Message

Apr 27 2013 | 5:11 pm

Hey Everyone, is it possible to modifiy the Curve of a linesegment in the Function object via a message.
As you can modifiy the position of single points like this, it would be great to have this functionality too for the patch I’m working on.

Sadly I couldn’t find anything in the help-files or forums. Maybe someone has an idea?

Apr 27 2013 | 5:34 pm

Not sure about modify, but you can clear and then re-plot:

-- Pasted Max Patch, click to expand. --

Maybe that helps?

I think you can get into trouble moving points around as function re-indexes everything, ie if you move point 1 after point 2 (x axis) it then becomes point 2. Whether it matters depends on what you’re doing I guess.

Apr 27 2013 | 5:46 pm

Thanks Mark, I modified it a bit and now it work perfectly for what I need!

-- Pasted Max Patch, click to expand. --

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > MaxMSP