Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. AudioWorkletProcessor
  4. parameterDescriptors

AudioWorkletProcessor: parameterDescriptors static property

The read-onlyparameterDescriptors property of anAudioWorkletProcessor-derived class is astatic getter,which returns an iterable ofAudioParamDescriptor-based objects.

The property is not a part of theAudioWorkletProcessorinterface, but, if defined, it is called internally by theAudioWorkletProcessor constructor to create a list of customAudioParam objects in theparameters property of the associatedAudioWorkletNode.

Defining the getter is optional.

Value

An iterable ofAudioParamDescriptor-based objects. The properties ofthese objects are as follows:

name

The string which represents the name of theAudioParam. Under this name theAudioParam will be available in theparameters property of the node, and under this name theAudioWorkletProcessor.process method will acquire the calculated values of thisAudioParam.

automationRateOptional

Either"a-rate", or"k-rate" string which represents an automation rate of thisAudioParam. Defaults to"a-rate".

minValueOptional

Afloat which represents minimum value of theAudioParam. Defaults to-3.4028235e38.

maxValueOptional

Afloat which represents maximum value of theAudioParam. Defaults to3.4028235e38.

defaultValueOptional

Afloat which represents initial value of theAudioParam. Defaults to0.

Examples

SeeAudioWorkletNode.parameters for example code showing how to add staticparameterDescriptors getter to a customAudioWorkletProcessor.

Specifications

Specification
Web Audio API
# audioworkletprocess-callback-parameters

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp