Simple sound generator for Ruby (using PortAudio)

Hello. I pushed a simple sound generator package to github.

You can generate sounds in Ruby by following codes.

require ‘./roscil’
Roscil.sin(440) # 440Hz sine wave
Roscil.saw(220) # 220Hz sawtooth wave
Roscil.tri(110) # 110Hz triangle wave
Roscil.pulse(880) # 880Hz pulse wave

We tested this package on Mac OS X 10.6 and MacPorts 2.0.3.
You can install PortAudio library by

sudo port install portaudio

If you use this package on Windows or Linux, please modify extconf.rb.

Ryo Hashimoto