@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="OscillatorNode")
public class OscillatorNode
extends AudioScheduledSourceNode
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
type
A DOMString specifying the shape of oscillator wave.
|
onendedchannelCount, channelCountMode, channelInterpretation| Constructor and Description |
|---|
OscillatorNode(BaseAudioContext context)
The OscillatorNode() constructor of the Web Audio API creates a new OscillatorNode object which is an AudioNode that represents a periodic waveform, like a sine wave, optionally setting the node's properties' values to match values in a specified object.
|
OscillatorNode(BaseAudioContext context,
OscillatorOptions options)
The OscillatorNode() constructor of the Web Audio API creates a new OscillatorNode object which is an AudioNode that represents a periodic waveform, like a sine wave, optionally setting the node's properties' values to match values in a specified object.
|
| Modifier and Type | Method and Description |
|---|---|
AudioParam |
detune()
An a-rate AudioParam.
|
AudioParam |
frequency()
An a-rate AudioParam.
|
void |
setPeriodicWave(PeriodicWave periodicWave)
The setPeriodicWave() method of the OscillatorNode interface is used to point to a PeriodicWave defining a periodic waveform that can be used to shape the oscillator's output, when type is custom.
|
addEndedListener, addEndedListener, addEndedListener, removeEndedListener, removeEndedListener, removeEndedListener, start, start, stop, stop_connect, _connect, _connect, _connect, _connect, connect, connect, connect, connect, connect, context, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, numberOfInputs, numberOfOutputsaddEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, values@Nonnull @OscillatorType public java.lang.String type
public OscillatorNode(@Nonnull
BaseAudioContext context,
@Nonnull
OscillatorOptions options)
public OscillatorNode(@Nonnull
BaseAudioContext context)
@JsProperty(name="detune") @Nonnull public AudioParam detune()
@JsProperty(name="frequency") @Nonnull public AudioParam frequency()
public void setPeriodicWave(@Nonnull
PeriodicWave periodicWave)