DescriptionGenerate a piecewise linear waveform given an array of sample values and the distances between them. The
Would generate a Wavetable that was 4096 samples long and the values of those samples would start at 1.0, linearly decrease to -1.0 over 2048 samples, and then increase to 1.0 over the next 2048 samples.
If you wanted to generate a triangle wavetable with 4096 samples, you'd do this:
Wavetable gen7(int size, float val, int dist)
Parameterssize — int: the size of the Wavetable that you want generate
val — float: the sample values used as control points for generating the waveform
dist — int: the sample distances between control points in val
UsageWeb & Application