AudioParam: defaultValue プロパティ

defaultValueAudioParam インターフェイスの読み取り専用プロパティで、 AudioParam を作成する固有の AudioNode で定義する属性の初期値を表します。

浮動小数点数 (Number) です。

js
const audioCtx = new AudioContext();
const gainNode = audioCtx.createGain();
const defaultVal = gainNode.gain.defaultValue;
console.log(defaultVal); // 1
console.log(defaultVal === gainNode.gain.value); // true

仕様書

Specification
Web Audio API
# dom-audioparam-defaultvalue

ブラウザーの互換性

BCD tables only load in the browser

関連情報