AudioMixer::Sox
Use AudioMixer::Sox to easily find and store the right balance of volume and panning for multiple sound files.
Installation
First make sure you have SoX installed on your machine. On Debian-based Linux distribution try:
$ sudo apt-get install sox
Then install this gem:
$ gem install audio_mixer-sox
Usage
$ audio_mixer-sox [FILE]
Where [FILE]
is a YAML file of the following structure (only the url
property is really necessary):
# sample composition
---
-
url: "~/workspace/sounds/door_open.ogg"
repeat: 1.2
panning: 0.0
volume: 1.0
mute: false
-
url: "~/workspace/sounds/disappear.ogg"
repeat: 1.5
panning: 0.8
volume: 1.0
mute: false
The mixer should now respond to the changes you make in [FILE]
on the fly.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request