Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. PeriodicWave

PeriodicWave

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨July 2015⁩.

ThePeriodicWave interface defines a periodic waveform that can be used to shape the output of anOscillatorNode.

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

Constructor

PeriodicWave()

Creates a newPeriodicWave object instance using the default values for all properties. If you wish to establish custom property values at the outset, use theBaseAudioContext.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

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

Specifications

Specification
Web Audio API
# PeriodicWave

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp