PCM

PCM Audio Library

Installation

Add this line to your application's Gemfile:

gem "pcm"

And then execute:

$ bundle

Or install it yourself as:

$ gem install pcm

Usage

require "pcm"

channels = [
  [-1.0],
  [-1.0, +0.25],
  [-1.0, +0.50, +0.75]
]

puts PCM.mix(*channels) #=> [-1.0, +0.25, +0.25]

Contributing

Bug reports and pull requests are welcome!

License

The gem is available as open source under the terms of the MIT License.