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
* feat: implemented different windows for analyser node
* docs: added window to docs
* fix: added caution to window type and small fix
---------
Co-authored-by: Maciej Makowski <maciej.makowski2608@gmail.com>
Copy file name to clipboardExpand all lines: packages/audiodocs/docs/visualization/analyser-node.mdx
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,13 @@ In contrast, a frequency-domain graph reveals how the signal's energy or power i
28
28
|`minDecibels`|`number`| Returns float value representing the minimum value for the range of results from [`getByteFrequencyData()`](/visualization/analyser-node#getbytefrequencydata). |
29
29
|`maxDecibels`|`number`| Returns float value representing the maximum value for the range of results from [`getByteFrequencyData()`](/visualization/analyser-node#getbytefrequencydata). |
30
30
|`smoothingTimeConstant`|`number`| Returns float value representing averaging constant with the last analysis frame. In general the higher value the smoother is the transition between values over time. |
31
+
|`window`|[`WindowType`](/types/window-type)| Returns an enumerated value that specifies the type of window function applied when extracting frequency data. |
32
+
33
+
:::caution
34
+
35
+
On `Web`, the value of`window` is permanently `'blackman'`, and it cannot be set like in the `Android` or `iOS`.
36
+
37
+
:::
31
38
32
39
## Read-only properties
33
40
@@ -101,3 +108,6 @@ Each value in the array is within the range 0 to 255, where value of 127 indicat
101
108
- Default value is 0.8.
102
109
- From range 0 to 1.
103
110
- 0 means no averaging, 1 means "overlap the previous and current buffer quite a lot while computing the value".
0 commit comments