0

I have been playing around with the web audio api.

I am using getByteFrequencyData to display the decibel data of frequency bands, however I would like to change the overall range in which the frequency bands are shown, as right now the important audio is all squashed into a couple a bands.

Any ideas on how to do this?

Thanks, Slidon

Slidon
  • 393
  • 2
  • 3
  • 16

1 Answers1

1

1) Is this a problem with how you are displaying the data? i.e. are you displaying every bucket, or grouping them together?

2) If it is a problem with the actual data you are getting and not how you are displaying it, try playing with AnalyserNode.fftSize. https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/fftSize This property defaults to 2048, which is the highest value you can use, so unless you have changed it somewhere, this shouldn't be the problem.

Please post example code for a more specific answer. Thanks!

Eliot Winder
  • 252
  • 2
  • 9
  • That's helpful, gave me the idea of increasing the fftSize and only processing a part of the data array. This gives the impression of zooming without any quality loss! – Slidon Jul 04 '15 at 23:25