Firefox Tomorrow

web api interface

PeriodicWave

View on MDN ↗

The PeriodicWave interface defines a periodic waveform that can be used to shape the output of an OscillatorNode.

PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling setPeriodicWave(). The PeriodicWave itself is created/returned by createPeriodicWave.

Constructor

  • PeriodicWave()
    • : Creates a new PeriodicWave object instance using the default values for all properties. If you wish to establish custom property values at the outset, use the createPeriodicWave factory method instead.

Instance properties

None; also, PeriodicWave doesn’t inherit any properties.

Instance methods

None; also, PeriodicWave doesn’t inherit any methods.

Example

See createPeriodicWave for simple example code that shows how to create a PeriodicWave object containing a simple sine wave.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also