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
If the FFT method is used to determine frequency before enough data has been collected in timeData, the call to fft.forward() on line 468 will fail.
This is possible when isInitialized() returns true - this behavior should be documented, a cleaner/more descriptive failure mode should occur, and/or another function should be added to check whether the fft method can be used yet.
To reproduce this, you need to call a method like getFreq(2) immediately after the microphone becomes initialized. I modified the library to call a callback when the microphone becomes initialized - calling getFreq(2) from there triggers this behavior. Since your demo requires a user click before getFreq will be called, it is difficult reproduce in the demo as-is.
The text was updated successfully, but these errors were encountered:
If the FFT method is used to determine frequency before enough data has been collected in timeData, the call to fft.forward() on line 468 will fail.
This is possible when isInitialized() returns true - this behavior should be documented, a cleaner/more descriptive failure mode should occur, and/or another function should be added to check whether the fft method can be used yet.
To reproduce this, you need to call a method like getFreq(2) immediately after the microphone becomes initialized. I modified the library to call a callback when the microphone becomes initialized - calling getFreq(2) from there triggers this behavior. Since your demo requires a user click before getFreq will be called, it is difficult reproduce in the demo as-is.
The text was updated successfully, but these errors were encountered: