Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public final class PeriodicWave
- Object
- PeriodicWave
A custom oscillator waveform given by its Fourier coefficients, the Web
Audio PeriodicWave. Create one with
[BaseAudioContext#createPeriodicWave(float[], float[])] and play it with
OscillatorNode.setPeriodicWave(PeriodicWave).
The waveform is sum(real[k] cos(k w t) + imag[k] sin(k w t)) for k from
- It is rendered from wavetables built once, each keeping only the harmonics below the Nyquist frequency for its pitch range, so it does not alias.