You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `AnalyserNode` interface represents a node providing two core functionalities: extracting time-domain data and frequency-domain data from audio signals.
11
11
It is an [`AudioNode`](/docs/core/audio-node) that passes the audio data unchanged from input to output, but allows to take passed data and process it.
|`fftSize`|`number`| Integer value representing size of [Fast Fourier Transform](https://en.wikipedia.org/wiki/Fast_Fourier_transform) used to determine frequency domain. In general it is size of returning time-domain data. |
Copy file name to clipboardExpand all lines: packages/audiodocs/docs/core/base-audio-context.mdx
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,7 @@ Creates [`PeriodicWave`](/docs/effects/periodic-wave). This waveform specifies a
146
146
| :---: | :---: | :---- |
147
147
|`real`|`Float32Array`| An array of cosine terms. |
148
148
|`imag`|`Float32Array`| An array of sine terms. |
149
-
|`constraints` <Optional /> |[`PeriodicWaveConstraints`](/docs/core/base-audio-context#periodicwaveconstraints)| An object that specifies if normalization is disabled. If so, periodic wave will have maximum peak value of 1 and minimum peak value of -1.|
149
+
|`constraints` <Optional /> |`{ disableNormalization: boolean }`| An object that specifies if normalization is disabled. If so, periodic wave will have maximum peak value of 1 and minimum peak value of -1.|
The audio context has been suspended (with one of [`suspend`](/docs/core/audio-context#suspend) or [`OfflineAudioContext.suspend`](/docs/core/offline-audio-context#suspend)).
324
+
The audio context has been suspended (with one of [`suspend`](/docs/core/audio-context#suspend) or [`OfflineAudioContext.suspend`](/docs/core/offline-audio-context#suspend)).
327
325
328
-
-`running`
326
+
-`running`
329
327
330
-
The audio context is running normally.
328
+
The audio context is running normally.
331
329
332
-
-`closed`
330
+
-`closed`
331
+
332
+
The audio context has been closed (with [`close`](/docs/core/audio-context#close) method).
333
333
334
-
The audio context has been closed (with [`close`](/docs/core/audio-context#close) method).
The `BiquadFilterNode` interface represents a low-order filter. It is an [`AudioNode`](/docs/core/audio-node) used for tone controls, graphic equalizers, and other audio effects.
15
14
Multiple `BiquadFilterNode` instances can be combined to create more complex filtering chains.
|`frequency`|[`AudioParam`](/docs/core/audio-param)|[`k-rate`](/docs/core/audio-param#a-rate-vs-k-rate)| The filter’s cutoff or center frequency in hertz (Hz). |
52
-
|`detune`|[`AudioParam`](/docs/core/audio-param)|[`k-rate`](/docs/core/audio-param#a-rate-vs-k-rate)| Amount by which the frequency is detuned in cents. |
53
-
|`Q`|[`AudioParam`](/docs/core/audio-param)|[`k-rate`](/docs/core/audio-param#a-rate-vs-k-rate)| The filter’s Q factor (quality factor). |
54
-
|`gain`|[`AudioParam`](/docs/core/audio-param)|[`k-rate`](/docs/core/audio-param#a-rate-vs-k-rate)| Gain applied by specific filter types, in decibels (dB). |
55
-
|`type`|[`BiquadFilterType`](#biquadfiltertype-enumeration-description)| — | Defines the kind of filtering algorithm the node applies (e.g. `"lowpass"`, `"highpass"`). |
47
+
|`Q`|[`AudioParam`](/docs/core/audio-param)|[`k‑rate`](/docs/core/audio-param#a-rate-vs-k-rate)| The filter’s Q factor (quality factor). |
48
+
|`detune`|[`AudioParam`](/docs/core/audio-param)|[`k‑rate`](/docs/core/audio-param#a-rate-vs-k-rate)| Amount by which the frequency is detuned in cents. |
49
+
|`frequency`|[`AudioParam`](/docs/core/audio-param)|[`k‑rate`](/docs/core/audio-param#a-rate-vs-k-rate)| The filter’s cutoff or center frequency in hertz (Hz). |
50
+
|`gain`|[`AudioParam`](/docs/core/audio-param)|[`k‑rate`](/docs/core/audio-param#a-rate-vs-k-rate)| Gain applied by specific filter types, in decibels (dB). |
51
+
|`type`|[`BiquadFilterType`](#biquadfiltertype-enumeration-description)|| Defines the kind of filtering algorithm the node applies (e.g. "lowpass", "highpass"). |
52
+
53
+
<br />
54
+
55
+
<br />
56
+
57
+
<br />
56
58
57
59
#### BiquadFilterType enumeration description
58
-
Note: The detune parameter behaves the same way for all filter types, so it is not repeated below.
|`lowpass`| Second-order resonant lowpass filter with 12dB/octave rolloff. Frequencies below the cutoff pass through; higher frequencies are attenuated. | The cutoff frequency. | Determines how peaked the frequency is around the cutoff. Higher values result in a sharper peak. | Not used |
@@ -67,10 +75,8 @@ Note: The detune parameter behaves the same way for all filter types, so it is n
67
75
|`notch`| Notch (band-stop) filter. Opposite of a bandpass filter: frequencies around the center are attenuated; others remain unchanged. | The center of the frequency range where the notch is applied. | Controls the bandwidth. Higher values result in a narrower band. | Not used |
68
76
|`allpass`| Second-order allpass filter. All frequencies pass through, but changes the phase relationship between the various frequencies. | The frequency where the center of the phase transition occurs (maximum group delay). | Controls how sharp the phase transition is at the center frequency. Higher values result in a sharper transition and a larger group delay. | Not used |
69
77
78
+
Note: The detune parameter behaves the same way for all filter types, so it is not included above
Copy file name to clipboardExpand all lines: packages/audiodocs/docs/effects/delay-node.mdx
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,6 @@ import { ReadOnly } from '@site/src/components/Badges';
10
10
The `DelayNode` interface represents the latency of the audio signal by given time. It is an [`AudioNode`](/docs/core/audio-node) that applies time shift to incoming signal f.e.
11
11
if `delayTime` value is 0.5, it means that audio will be played after 0.5 seconds.
|`delayTime`| <ReadOnly /> [`AudioParam`](/docs/core/audio-param)|[`k-rate`](/docs/core/audio-param#a-rate-vs-k-rate)`AudioParam` representing value of time shift to apply. |
Copy file name to clipboardExpand all lines: packages/audiodocs/docs/effects/gain-node.mdx
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,6 @@ The `GainNode` interface represents a change in volume (amplitude) of the audio
13
13
Direct, immediate gain changes often cause audible clicks. Use the scheduling methods of [`AudioParam`](/docs/core/audio-param) (e.g. `linearRampToValueAtTime`, `exponentialRampToValueAtTime`) to smoothly interpolate volume transitions.
|`gain`|[`AudioParam`](/docs/core/audio-param)|[`a-rate`](/docs/core/audio-param#a-rate-vs-k-rate)`AudioParam` representing the gain value to apply. | <ReadOnly /> |
`GainNode` is the key building block for implementing sound envelopes. For a practical, step-by-step walkthrough of ADSR envelopes and how to apply them in a real app, see the [Making a piano keyboard](/docs/guides/making-a-piano-keyboard#envelopes-) guide.
79
+
`GainNode` is the key building block for implementing sound envelopes. For a practical, step-by-step walkthrough of ADSR envelopes and how to apply them in a real app, see the [Making a piano keyboard](/docs/guides/making-a-piano-keyboard#envelopes-%EF%B8%8F) guide.
|`pan`|[`AudioParam`](/docs/core/audio-param)|[`a-rate`](/docs/core/audio-param#a-rate-vs-k-rate)`AudioParam` representing how the audio signal is distributed between the left and right channels. |
0 commit comments