Re:Computational Synesthesia: Audio Analysis with Image Proc...
by doctoboggan on Tuesday October 01, 2013 @02:51PM
(#6478272)
Hi sanskrit, thanks for the feedback.
If I was implementing this in production I certainly would apply some sort of window function. However this blog post was mostly just to show some cool code, and ease of reading was my first constraint. Notice also how I kept intermediate arrays around in my functions. This uses more memory but is easier to read.
In the end this approach doesn't seem to scale to the amount of data Shazaam must be processing so it's all moot anyway.
Re:Computational Synesthesia: Audio Analysis with Image Proc...
by gallamine on Tuesday October 01, 2013 @06:45PM
(#6479574)
I don't think I'd call a rectangular window a "damning mistake." Depending upon the application, maybe the energy spread is acceptable (and computationally quicker).
For the curious: http://en.wikipedia.org/wiki/Window_function
For example, you gotta window your FFTs in the spectrogram, kid.