Readonly $lockThe lock will be true if the $paramsBuffer is changing by the processor.
This is a view of a SharedArrayBuffer
Readonly $paramsThe values of internal parameters,
contains one value for each param,
will be updated each AudioWorklet buffer.
This is a view of a SharedArrayBuffer
Readonly $prevPrevious params value since last event dispatch of any non-AudioParam internal parameters
Readonly contextReadonly groupReadonly initializedThe state of the initialization.
Readonly instanceReadonly internalAn array that contains ordered internal params names. The order is important for the output connections and for the parameters' values buffer
Readonly internalThe plugin's internal parameters description. Used for denormalize normalized exposed parameters values
Readonly moduleReadonly moduleReadonly numberReadonly numberReadonly parametersReadonly paramsEvent dispatch callback functions bound to specific values for the parameter.
Readonly paramsEvent dispatch callbacks reference of the setTimeout calls.
Used to clear the callbacks while destroying the plugin.
Readonly portOptional options: boolean | AddEventListenerOptionsconnect an internal parameter audio output to an AudioParam or an AudioNode.
Note that if the destination is declared in the internalParamsConfig,
there is no need to reconnect it.
Optional index: numberdisonnect an internal parameter audio output to an AudioParam or an AudioNode.
Optional dest: AudioNode | AudioParamOptional index: numberget the output index of an internal parameter from its name, null if not exist
get the current value of an internal parameter
get the current value of every internal parameters
normalized value version of getParamValue()
get the AudioParam instance of an exposed parameter
get the current value of an exposed parameter,
shorthand for AudioParam.prototype.value
waiting for the processor that gives the paramsBuffer SharedArrayBuffer
Optional options: boolean | EventListenerOptionsForce to check if an internal param is updated to dispatch immediately value change event if necessary. Note that the event will also be throttled to the automation rate.
normalized value version of setParamValue()
normalized value version of setParamsValues()
get the current value of an exposed parameter,
shorthand for AudioParam.prototype.value = value
set the current value of every exposed parameters
Generated using TypeDoc
Parameter Manager is an implementation of
WamNode, it uses nativeWebAudioAudioParamto adaptWamParameterAPI for automations. It can be used to create automatable values that will be changed with two methods:if the automated value is an
AudioParam:According to the
WebAudioSpec,the
computedValueof the automatedAudioParamis the sum of itsparamIntrinsicValue(valueattribute) and its audio input. TheParamMgruses this property to automateAudioParams. It will create corresponding audio output that is connected to the automatedAudioParam.BiquadFilterNode.getFrequencyResponse()will not work if itsAudioParams are automated in this case.if the automated value is not an
AudioParamWhile setting up the
ParamMgr, user can provide anonChangecallback for any furthur opertionalong with an
automationRatein milliseconds as the frequency of calling the callback if the value has been changed.