News for hackers. Stuff that matters.
Re:Computational Synesthesia: Audio Analysis with Image Proc... by sanskritabelt on Tuesday October 01, 2013 @01:54PM (#6477838)
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.

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