3 ms·
I was originally going call this 'pretty good for amateur hour stuff' but I clicked around the site a little bit and dude's got an EE, which raises the bar of w
by sanskritabelt 13y ago
I was originally going call this 'pretty good for amateur hour stuff' but I clicked around the site a little bit and dude's got an EE, which raises the bar of what's acceptable, and the mistakes are more damming.
For example, you gotta window your FFTs in the spectrogram, kid.
- doctoboggan 13y agoHi 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.
- gallamine 13y agoI 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 http://en.wikipedia.org/wiki/Window_function