-
Notifications
You must be signed in to change notification settings - Fork 22.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update intro of FrequencyAnalyzer.frequencyBinCount #24184
Conversation
Preview URLs External URLs (1)URL:
(comment last updated: 2023-03-30 04:35:51) |
@@ -14,7 +14,7 @@ browser-compat: api.AnalyserNode.frequencyBinCount | |||
|
|||
{{APIRef("Web Audio API")}} | |||
|
|||
The **`frequencyBinCount`** read-only property of the {{domxref("AnalyserNode")}} interface is an unsigned integer half that of the {{domxref("AnalyserNode.fftSize")}}. This generally equates to the number of data values you will have to play with for the visualization. | |||
The **`frequencyBinCount`** read-only property of the {{domxref("AnalyserNode")}} interface is an unsigned integer half that of the {{domxref("AnalyserNode.fftSize")}}. This is the total number of data points available. Their indices have a linear relationship with the frequencies they represent, between 0 and the [Nyquist frequency](https://en.wikipedia.org/wiki/Nyquist_frequency). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
frequencyBinCount
read-only property of the {{domxref("AnalyserNode")}} interface is an unsigned integer half that of the {{domxref("AnalyserNode.fftSize")}}
- "half that" - you mean half the value of, or half the data size of - impossible to tell.
- Normally we don't mention the data size because users of the API don't care unless it forces them to use something other than
Number
.
So I would restructure this to something like:
The
frequencyBinCount
read-only property of the {{domxref("AnalyserNode")}} interface is the total number of data points availableto whatever it is they are available to
.
This is half theWHAT????
of the the {{domxref("AnalyserNode.fftSize")}}. The two method's indices have a linear relationship with the frequencies they represent, between 0 and the Nyquist frequency.
Could someone from @mdn/yari-content-web-api review this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Fix #24183
Description
Motivation
Additional details
Related issues and pull requests