-
Notifications
You must be signed in to change notification settings - Fork 8.1k
/
index.md
35 lines (23 loc) · 1008 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
title: AnalyserNode()
slug: Web/API/AnalyserNode/AnalyserNode
---
{{APIRef("'Web Audio API'")}}{{SeeCompatTable}}
Le constructeur **`AnalyserNode`** crée un nouvel objet {{domxref("AnalyserNode")}}.
## Syntaxe
```js
var analyserNode = new AnalyserNode(context, options);
```
### Paramètres
- _context_
- : Référence à un {{domxref("AudioContext")}}.
- _options_ {{optional_inline}}
- : Un objet avec les propriétés suivantes :
- `fftSize`: taille initiale sde la FFT pour l'analyse du domaine fréquentiel . La valeur par défaut est 2048.
- `maxDecibels`: valeur maximale de puissance de la plage pour l'analyse FFT, en décibels. La valeur par défaut est -30.
- `minDecibels`: valeur minimale de puissance de la plage pour l'analyse FFT, en décibels. La valeur par défaut est -100.
- `smoothingTimeConstant`: valeur de lissage pour l'analyse FFT. La valeur par défaut est 0.8
## Spécifications
{{Specifications}}
## Compatibilité des navigateurs
{{Compat}}