Annotary
Sort

What does the FFT data in the Web Audio API correspond to?

stackoverflow.com
Jean-Sacha Melon Jean-Sacha Melon
2 months ago
Explanation of the FFT data in the Web Audio API

yes,getByteFrequencyData results in a normalized array of values between 0 and 255. (it copies the data to the array it gets passed-in).

the frequency bands are split equally, so each element N of your array corresponds to:

N * samplerate/fftSize
Cancel
Sort

RecordRTC: Index

recordrtc.org
Jean-Sacha Melon Jean-Sacha Melon
2 months ago
RecordRTC is a JavaScript-based media-recording library for modern web-browsers (supporting WebRTC getUserMedia API).
Sort

Autocorrelation - Wikipedia

en.wikipedia.org
Jean-Sacha Melon Jean-Sacha Melon
2 months ago
Autocorrelation can be used instead of FFT
it is the similarity between observations as a function of the time lag between them.
Cancel
tool for finding repeating patterns
Cancel
Show all 2 highlights
Sort

cwilso/PitchDetect

github.com
Jean-Sacha Melon Jean-Sacha Melon
2 months ago
JavaScript app to detect pitch from microphone.
Sort

JS setInterval executes only once

stackoverflow.com
Jean-Sacha Melon Jean-Sacha Melon
2 months ago

You are passing the result of executing the function instead of the function itself. Since the result of the function is undefined, you are executing checkIfGameAlreadyStarted and then passing undefined to setInterval which doesn't do anything.

Instead of this:

setInterval(checkIfGameAlreadyStarted(), 1000);

Your statement should be this:

setInterval(checkIfGameAlreadyStarted, 1000);

without the parentheses at the end of the function name.

Cancel
Loading...