Minim 

gen7 
Description Generate a piecewise linear waveform given an array of sample values and the distances between them. Thedist array should contain one value less than the val
array. The values in the dist array should also add up to size . For instance, a
call like this:
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:
Signature Wavetable gen7(int size, float[] val, int[] dist) Parameters size — int: the size of the Wavetable that you want generateval — float[]: the sample values used as control points for generating the waveform dist — int[]: the sample distances between control points in val Returns a Wavetable Related WavetableExample None available Usage Web & Application 