Oscillofy
February 16th, 2008
After being inspired by this post, I decided to hack together Oscillofy; a Ruby script that can turn an image into sound. The sound looks like the image when it is played back into an oscilloscope (like Goldwave’s XY plot).
A few caveats:
- If the pixel is not white, it is plotted onto the oscilloscope. So for best results, make sure the image is black and white.
- Images with a resolution of 255×255 work best. The image will be resized (and stretched) if necessary.
- The output PCM is 8-bit unsigned.
So knock yourself out. Sure this is a bit of a departure from the usual stuff I post here but hey, I needed to share it.