Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/api/audioparam/maxvalue/index.md
6560 views
---
title: AudioParam.maxValue slug: Web/API/AudioParam/maxValue page-type: web-api-instance-property browser-compat: api.AudioParam.maxValue
---

{{APIRef("Web Audio API")}}

The maxValue read-only property of the {{domxref("AudioParam")}} interface represents the maximum possible value for the parameter's nominal (effective) range.

Value

A floating-point {{jsxref("Number")}} indicating the maximum value permitted for the parameter's nominal range.

The default value of maxValue is the maximum positive single-precision floating-point value (+340,282,346,638,528,859,811,704,183,484,516,925,440).

Examples

const audioCtx = new AudioContext(); const gainNode = audioCtx.createGain(); console.log(gainNode.gain.maxValue); // 3.4028234663852886e38

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("AudioParam.minValue")}}