@thi.ng/dsp
Version:
Composable signal generators, oscillators, filters, FFT, spectrum, windowing & related DSP utils
14 lines • 554 B
TypeScript
import type { StatelessOscillator } from "./api.js";
/**
* Returns a {@link StatelessOscillator} function with adjustable waveform based
* on given `squareness` param (in `[0,1)` interval). If `squareness = 0` the
* waveform will be a perfect sine. Higher values morph the waveform
* increasingly into a square wave.
*
* @remarks
* [Interactive graph](https://www.desmos.com/calculator/nbvd97m3kl)
*
* @param squareness
*/
export declare const squareSin: (squareness: number) => StatelessOscillator;
//# sourceMappingURL=osc-square-sin.d.ts.map