Optional options: UnisonOscillatorOptionsProtected _gainPrivate _musPrivate _spreadPrivate modeAn a-rate AudioParam representing detuning of oscillation in cents (though the AudioParam returned is read-only, the value it represents is not). The default value is 0.
An a-rate AudioParam representing the frequency of oscillation in hertz (though the AudioParam returned is read-only, the value it represents is not). The default value is 440 Hz (a standard middle-A note).
Set the number of voices in this MultiOscillator group. Allocates and auto-connects new voices as necessary.
An a-rate AudioParam representing spread of oscillation in Hertz (though the AudioParam returned is read-only, the value it represents is not). The default value is 0.
A string which specifies the shape of waveform to play; this can be one of a number of standard values, or "custom" to use a PeriodicWave to describe a custom waveform. Different waves will produce different tones. Standard values are "sine", "square", "sawtooth", "triangle" and "custom". The default is "sine".
A string which specifies the shape of waveform to play; this can be one of a number of standard values, or "custom" to use a PeriodicWave to describe a custom waveform. Different waves will produce different tones. Standard values are "sine", "square", "sawtooth", "triangle" and "custom". The default is "sine".
Optional options: boolean | AddEventListenerOptionsOptional options: boolean | AddEventListenerOptionsDispose of this MultiOscillator stopping and disconnecting all voices.
Optional options: boolean | EventListenerOptionsOptional options: boolean | EventListenerOptionsSets a PeriodicWave which describes a periodic waveform to be used instead of one of the standard waveforms; calling this sets the type to "custom".
A PeriodicWave object representing the waveform to use as the shape of the oscillator's output.
Specifies the exact time to start playing the tone.
Optional when: numberThe time, in seconds, at which the sound should begin to play. This value is specified in the same time coordinate system as the AudioContext is using for its currentTime attribute. A value of 0 (or omitting the when parameter entirely) causes the sound to start playback immediately.
Specifies the time to stop playing the tone.
Optional when: numberThe time, in seconds, at which the sound should stop playing. This value is specified in the same time coordinate system as the AudioContext is using for its currentTime attribute. Omitting this parameter, specifying a value of 0, or passing a negative value causes the sound to stop playback immediately.
Generated using TypeDoc
A group of oscillators playing in unison slightly spread in frequency.