[PD] waveshaper with spline curves

Mathieu Bouchard matju at artengine.ca
Sat May 27 17:16:04 CEST 2006


On Fri, 26 May 2006, thewade wrote:

> I built a simple wave shaper - its real easy - but making non uniform
> ration b-splines (or any other type of b-spline) would be difficult to
> implement in PD well unless you know C.

There exists an equivalence between b-splines and béziers. Use this 
matrix:

[1 4 1 0;
 0 4 2 0;
 0 2 4 0;
 0 1 4 1] / 6

it can convert b-spline points to bézier points of the same curve... or 
maybe it does the other way around.

i took the matrix from "Interactive Computer Graphics" by Edward Angel.

 _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada




More information about the Pd-list mailing list