Skip to content
This repository was archived by the owner on Jun 9, 2019. It is now read-only.

OscillatorNode

mohayonao edited this page Jan 27, 2015 · 6 revisions

Object > EventTarget > AudioNode > OscillatorNode

Properties

Inherits properties from its parent, AudioNode.

  • type: enum { "sine", "square", "sawtooth", "triangle", "custom" }
  • frequency: AudioParam
  • detune: AudioParam

Event handlers

  • onended

Methods

Inherits methods from its parent, AudioNode.

  • start([when: number]): void
  • stop([when: number]): void
  • setPeriodicWave(periodicWave: PeriodicWave): void

Test API

Inherits test API from its parent, AudioNode.

  • $state: string readonly
  • $custom: PeriodicWave readonly
  • $stateAtTime(when: number): string

JSON

{
  "name": "OscillatorNode",
  "type": "sine",
  "frequency": {
    "value": 440,
    "inputs": []
  },
  "detune": {
    "value": 0,
    "inputs": []
  },
  "inputs": []
}

References

Clone this wiki locally