[ANN] ruby/audio 0.1.0

H

Hans Fugal

require 'audio/sndfile'

Audio::Soundfile.open('chunky_bacon.wav') do |sf|
sound = sf.readf_float(sf.frames)

puts "Maximum amplitude: #{sound.abs.max}"

sound.each_frame do |frame|
# something cool
end
end

ruby/audio provides a convenience wrapper around NArray that will make
all your friends jealous; but what will really make their heads explode
is that you have ruby-way access to libsndfile [2]. Use with caution.

1. http://hans.fugal.net/src/ruby-audio/
2. http://www.mega-nerd.com/libsndfile/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,197
Messages
2,571,040
Members
47,634
Latest member
RonnyBoelk

Latest Threads

Top