Params defined inside the props.oscillator.params, when props.oscillator = 'harmonic'

interface HarmonicOscillatorParams {
    cycles?: number;
    negativeHander?: string | NegativeFunc | NegativeBuiltInFuncs;
    shift: number;
}

Hierarchy (view full)

Properties

cycles?: number

Defines the number of full cycles (positive arc+negative arc) contained during the duration period. If negativeHander = abs, 1 cycle will have 2 arcs.

negativeHander?: string | NegativeFunc | NegativeBuiltInFuncs

Function used to define what to do when a value is negative.

shift: number

Allows to shift and scale the input of every oscillator.