Minim
core | ugens | analysis
 

WavetableGenerator

gen10

Description

Generate a Wavetable given a list of amplitudes for successive partials (harmonics). These two method calls are equivalent:

Wavetable table = WavetableGenerator.gen9(4096, new float[] { 1, 2, 3 }, new float[] { 1, 0.5, 0.2 }, new float[] { 0, 0, 0 });

Wavetable table = WavetableGenerator.gen10(4096, new float[] { 1, 0.5, 0.2 });

Signature

Wavetable gen10(int size, float[] amp)

Parameters

size — int: the number of samples the Wavetable should contain
amp — float[]: the amplitude of each successive partial, beginning with partial 1.

Returns

a Wavetable

Related

gen9 ( )
Wavetable

Example

None available

Usage

Web & Application