Rawdio 0.1.0
I’ve wrapped up my WAV file wrapper and stuffed it into a gem. As it stands it can only take audio data as a byte string and write a WAV file for it, but sine/square/triangle wave helpers (and more!) are on their way. I’m also hoping to add support for other “raw” audio formats soon.
require 'rubygems' require 'rawdio' white_noise = Rawdio::WAV.new 8000.times { white_noise << rand(255).chr } white_noise.write('sweet_sound.wav')
Have at it (if you have the need):
sudo gem install rawdio