(no subject)
sometimes at work when futzing around with signal processing stuff, i have to dump signals to disk and listen to them, to make sure some operation is doing what i think it is.
the other day i needed to compare two audio signals to make sure they were the same. they SOUNDED the same, but i needed some way of "diffing" them to be sure, and we don't really have any fancy sound editing tools where i work.
but i had photoshop! so i loaded the first 135 seconds of "still a g-thang" by snoop dogg (hey, we don't get to pick and choose what we test with) as raw pcm data:

and here's the signal i needed to compare it to:

and here's what happened when i overlayed them, shifted one over slightly to account for a different offset in the buffer, and then set the top layer to difference:

voila! just a tiny bit of noise attributable to one signal being mp3 encoded and the other AAC, but the signals were basically the same. proof that the bug i was trying to fix was upstream (not in my code, BITCHES!)
then, out of curiosity, i saved the image as a JPEG, then decompressed it back to raw and listened to it. here's what snoop dogg sounds like when you compress him with your EYES instead of your EARS, MAAAAAN (wooaaaaaah, groovy)!
the other day i needed to compare two audio signals to make sure they were the same. they SOUNDED the same, but i needed some way of "diffing" them to be sure, and we don't really have any fancy sound editing tools where i work.
but i had photoshop! so i loaded the first 135 seconds of "still a g-thang" by snoop dogg (hey, we don't get to pick and choose what we test with) as raw pcm data:
and here's the signal i needed to compare it to:
and here's what happened when i overlayed them, shifted one over slightly to account for a different offset in the buffer, and then set the top layer to difference:
voila! just a tiny bit of noise attributable to one signal being mp3 encoded and the other AAC, but the signals were basically the same. proof that the bug i was trying to fix was upstream (not in my code, BITCHES!)
then, out of curiosity, i saved the image as a JPEG, then decompressed it back to raw and listened to it. here's what snoop dogg sounds like when you compress him with your EYES instead of your EARS, MAAAAAN (wooaaaaaah, groovy)!