Generate basic waveforms (sine, square, sawtooth, triangle), white noise and silence.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
lib
pkg
CHANGELOG
LICENSE
Manifest
README
Rakefile

README

This gem generates waveforms. Waveform data ranges from 1 to -1.

Example:
s = Synthesize.new(440, 1, 1) 440 Hz, Max Amplitude, 1 Second
s.square

f = File.new("square.wav", "w")
f.write(s.to_wav)
f.close


Thanks to Damien Karras for the algorithms!
http://en.wikibooks.org/wiki/Sound_Synthesis_Theory/Oscillators_and_Wavetables