Skip to content
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

FFT and the values ​​of the array #6

Open
iacoposk8 opened this issue Feb 8, 2013 · 0 comments
Open

FFT and the values ​​of the array #6

iacoposk8 opened this issue Feb 8, 2013 · 0 comments

Comments

@iacoposk8
Copy link

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

  1. these volumes in which units are? decibels?
  2. for example, in the array, the position 35 corresponds to that frequency?
    thanks :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant