Forum: Ruby ruby/audio 0.1.0

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
fugalh (Guest)
on 2005-11-21 20:37
(Received via mailing list)
require 'audio/sndfile''chunky_bacon.wav') do |sf|
    sound = sf.readf_float(sf.frames)

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

    sound.each_frame do |frame|
      # something cool

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.

This topic is locked and can not be replied to.