-
Notifications
You must be signed in to change notification settings - Fork 4
Description
@TimToplak -
In the spectrogram view, this project seems to use a fixed scale for the frequency spectrum. Sometimes the most interesting bits of sound are limited to 0-6k Hertz, so it would be useful to "zoom in".
We tried feeding it files with sampling rates at 8k and 16k hoping that it would scale to a lower Nyquist, but that does not seem to work. It created a model that was completely flat in the upper end of the spectrum. That tells me that the range is static somewhere in the code. When I dug into the code:
- I first saw some references to the frequency scale here in the code.
- That lead me to this reference to an OfflineAudioContext that uses the value of 44110, meaning the Nyquist will always be 22050.
I know audio, but very little about WebAudio API. Would it be possible to get the sampling rate from the upload file? This should be a simple way to force the model to have a more limited frequency spectrum. Users could simply down-sample th file before uploading to your project.
A more complex solution would be some additional controls to zoom into the lower end of the frequency spectrum.
Thanks for your consideration and THANKS for sharing this project!
@nwolek