{{ APIRef() }}
The PeriodicWave
interface defines a periodic waveform that can be used to shape the output of an {{domxref("OscillatorNode")}}.
PeriodicWave
has no inputs or outputs; it is used to create custom oscillators via {{domxref("OscillatorNode.setPeriodicWave")}}. The PeriodicWave
itself is created/returned by {{domxref("AudioContext.createPeriodicWave")}}.
Properties
None; PeriodicWave doesn't inherit properties from {{domxref("AudioNode")}}.
Methods
None; PeriodicWave doesn't inherit properties from {{domxref("AudioNode")}}.
Example
{{page("/en-US/docs/Web/API/AudioContext.createPeriodicWave","Example")}}
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('Web Audio API', '#the-periodicwave-interface', 'PeriodicWave')}} | {{Spec2('Web Audio API')}} |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatChrome(10.0)}}{{property_prefix("webkit")}} | {{CompatGeckoDesktop(25.0)}} | {{CompatNo}} | 15.0{{property_prefix("webkit")}} 22 (unprefixed) |
6.0{{property_prefix("webkit")}} |
Feature | Android | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | 26.0 | 1.2 | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | 33.0 |