Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface OscillatorNode

The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone.

Hierarchy

Index

Properties

AudioScheduledSourceNode

AudioScheduledSourceNode: { constructor: any; prototype: AudioScheduledSourceNode }

Type declaration

channelCount

channelCount: number

channelCountMode

channelCountMode: ChannelCountMode

channelInterpretation

channelInterpretation: ChannelInterpretation

Readonly context

Readonly detune

detune: AudioParam

Readonly frequency

frequency: AudioParam

Readonly numberOfInputs

numberOfInputs: number

Readonly numberOfOutputs

numberOfOutputs: number

onended

onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null

type

Methods

addEventListener

connect

  • connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode
  • connect(destinationParam: AudioParam, output?: number): void
  • Parameters

    • destinationNode: AudioNode
    • Optional output: number
    • Optional input: number

    Returns AudioNode

  • Parameters

    • destinationParam: AudioParam
    • Optional output: number

    Returns void

disconnect

  • disconnect(): void
  • disconnect(output: number): void
  • disconnect(destinationNode: AudioNode): void
  • disconnect(destinationNode: AudioNode, output: number): void
  • disconnect(destinationNode: AudioNode, output: number, input: number): void
  • disconnect(destinationParam: AudioParam): void
  • disconnect(destinationParam: AudioParam, output: number): void
  • Returns void

  • Parameters

    • output: number

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • destinationNode: AudioNode
    • output: number
    • input: number

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

dispatchEvent

  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    Returns boolean

removeEventListener

setPeriodicWave

  • Parameters

    Returns void

start

  • start(when?: number): void
  • Parameters

    • Optional when: number

    Returns void

stop

  • stop(when?: number): void
  • Parameters

    • Optional when: number

    Returns void

Generated using TypeDoc