AudioParamMap
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.
TheAudioParamMap interface of theWeb Audio API represents an iterable and read-only set of multiple audio parameters.
AnAudioParamMap instance is a read-onlyMap-like object, in which each key is the name string for a parameter, and the corresponding value is anAudioParam containing the value of that parameter.
In this article
Instance properties
The following methods are available to all read-onlyMap-like objects (the below links are to theMap global object reference page).
sizeReturns the number of entries in the map.
Instance methods
The following methods are available to all read-onlyMap-like objects (the below links are to theMap global object reference page).
entries()Returns a newiterator object that yields entries in
[key, value]pairs in the map in insertion order.forEach()Calls a providedcallback function once for each value and key present in the map, in insertion order.
get()Returns the
AudioParamvalue associated with the string key, orundefinedif there is none.has()Returns aboolean indicating whether a key is present in the map or not.
keys()Returns a new iterator object that yields the string keys in the map in insertion order.
values()Returns a new iterator object that yields the
AudioParamvalues in the map in insertion order.
Specifications
| Specification |
|---|
| Web Audio API> # audioparammap> |