Does anyone have experience working with bezier curves? I'm having a little trouble getting my head around the formulas.

What I'd like to do is to define half a saturation curve with the visual output of an array in bezier curve mode.

So I have an array with five points in it. The first point is locked to 0,0, the last point locked to 1,1. the three intermediate points are editable by a selector and a slider.

Visually in the graph, the result is a nice-looking bezier curve. Of course, there's only five points here. So I need a way to upsample those five points in a bezier fashion. The result would be an array with many points in it that match the curve of the original visual bezier.

I'll attach a sloppy patch to illustrate, if anyone can steer me in the right direction that would be swell, but no hard feelings if you're not feeling it.

thanks kindly folks.