Minim core | ugens | analysis |
WavetableGenerator gen7 | Description Generate a piecewise linear waveform given an array of sample values and the distances between them. The `dist` 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: `Wavetable table = WavetableGenerator.gen7( 4096, new float[] { 1.0, -1.0, 1.0 }, new int[] { 2048, 2048 } );` 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 table = WavetableGenerator.gen7( 4069, new float[] { 0.0, 1.0, 0.0, -1.0, 0.0 }, new int[] { 1024, 1024, 1024, 1024 } );` Signature
    Wavetable gen7(int size, float[] val, int[] dist)
Parameters size — 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 Returns a Wavetable Related Wavetable Example
    None available
Usage Web & Application