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.

The AudioParamMap interface of the Web Audio API represents an iterable and read-only set of multiple audio parameters.

An AudioParamMap instance is a read-only Map-like object, in which each key is the name string for a parameter, and the corresponding value is an AudioParam containing the value of that parameter.

Instance properties

The following methods are available to all read-only Map-like objects (the below links are to the Map global object reference page).

size

Returns the number of entries in the map.

Instance methods

The following methods are available to all read-only Map-like objects (the below links are to the Map global object reference page).

entries()

Returns a new iterator object that yields entries in [key, value] pairs in the map in insertion order.

forEach()

Calls a provided callback function once for each value and key present in the map, in insertion order.

get()

Returns the AudioParam value associated with the string key, or undefined if there is none.

has()

Returns a boolean 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 AudioParam values in the map in insertion order.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android
@@iterator 66 79 76 53 14.1 66 79 47 14.5 9.0 66
AudioParamMap 66 79 76 53 14.1 66 79 47 14.5 9.0 66
entries 66 79 76 53 14.1 66 79 47 14.5 9.0 66
forEach 66 79 76 53 14.1 66 79 47 14.5 9.0 66
get 66 79 76 53 14.1 66 79 47 14.5 9.0 66
has 66 79 76 53 14.1 66 79 47 14.5 9.0 66
keys 66 79 76 53 14.1 66 79 47 14.5 9.0 66
size 66 79 76 53 14.1 66 79 47 14.5 9.0 66
values 66 79 76 53 14.1 66 79 47 14.5 9.0 66

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap