GENquadbezier
Generate a table with values from a quadratic Bézier function.
Plugin gen in quadbezier.
This subroutine creates an ftable from segments constructed by paths traced by the quadratic Bézier function.
Syntax
Initialization
x2, x3, etc. -- Locations in table at which to attain the following y value. Must be in increasing order. It is assumed that x1 equals 0. If the last value is less than size, then the rest will be set to zero. Should not be negative.
y1, y2, y3, etc. -- Breakpoint values attained at the location specified by the preceding x value.
cx1, cx2, cx3, etc. -- Virtual x coordinates for the different control points. cx[n] can be equal to but not less than x[n] and equal to but not greater than x[n+1]. Should not be negative but can be zero.
cy1, cy2, cy3, etc. -- Virtual y coordinates for the different control points.
Examples
Here is a simple example of the GENquadbezier routine. It uses the file genquadbezier.csd.
These are the diagrams of the envelopes drawn by the GENquadbezier routine, as used in the example above:



See also
For references, check the comments in the source code.
Credits
Written by Guillermo Senna
2016