We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In this example: http://mohayonao.github.com/timbre/documents/fft.html
in the function WaveViewer.animate, there is the following code:
for (i = step, imax = wave.length; i < imax; i += step) { y = (wave[i] - min) / (max - min); context.lineTo(i * dx, height - (height * y)); }
wave in the array (I think) there is a list of volumes achieved by the different frequencies at that time from the audio file
The text was updated successfully, but these errors were encountered:
The function WaveViewer.animate is just sloppy that made for a demo.
It's my understanding that the array contains magnitude spectrum, not decibels. Decibels and frequencies probably may be calculated as follow.
decibel[i] = 20 * Math.log(array[i]) * Math.LOG10E frequency[i] = (samplerate / (array.length * 2)) * i
By the way, this repository and document are old anymore. New project page is here: http://mohayonao.github.com/timbre.js/
thanks.
Sorry, something went wrong.
no way to know the volume of each frequency? thanks for the answer :)
No branches or pull requests
In this example:
http://mohayonao.github.com/timbre/documents/fft.html
in the function WaveViewer.animate, there is the following code:
for (i = step, imax = wave.length; i < imax; i += step) {
y = (wave[i] - min) / (max - min);
context.lineTo(i * dx, height - (height * y));
}
wave in the array (I think) there is a list of volumes achieved by the different frequencies at that time from the audio file
thanks :)
The text was updated successfully, but these errors were encountered: