mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-14 12:53:59 +00:00
fixing example
This commit is contained in:
parent
55b555d25c
commit
742a965d33
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ export class FFT extends MeterBase<FFTOptions> {
|
||||||
* Returns the frequency value in hertz of each of the indices of the FFT's [[getValue]] response.
|
* Returns the frequency value in hertz of each of the indices of the FFT's [[getValue]] response.
|
||||||
* @example
|
* @example
|
||||||
* const fft = new Tone.FFT(32);
|
* const fft = new Tone.FFT(32);
|
||||||
* console.log(fft.getIndexFrequency());
|
* console.log(fft.getFrequencyOfIndex());
|
||||||
*/
|
*/
|
||||||
getFrequencyOfIndex(index: number): Hertz {
|
getFrequencyOfIndex(index: number): Hertz {
|
||||||
assert(0 <= index && index < this.size, `index must be greater than or equal to 0 and less than ${this.size}`);
|
assert(0 <= index && index < this.size, `index must be greater than or equal to 0 and less than ${this.size}`);
|
||||||
|
|
Loading…
Reference in a new issue