https://github.com/arirusso/spall
MIDIable Audio Sample Player
https://github.com/arirusso/spall
Last synced: over 1 year ago
JSON representation
MIDIable Audio Sample Player
- Host: GitHub
- URL: https://github.com/arirusso/spall
- Owner: arirusso
- License: other
- Created: 2015-11-11T04:38:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-13T03:24:14.000Z (over 10 years ago)
- Last Synced: 2025-01-24T12:45:31.136Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spall
MIDI Controllable Audio Sample Player
## Installation
These packages must be installed first:
* libsndfile ([link](https://github.com/erikd/libsndfile))
* portaudio ([link](http://portaudio.com/docs/v19-doxydocs/pages.html))
Both libraries are available in *Homebrew*, *APT*, *Yum* as well as many other package managers. For those who wish to compile themselves or need more information about those packages, follow the links above for more information
Once those libraries are installed, install the gem itself using
gem install spall
Or if you're using Bundler, add this to your Gemfile
gem "spall"
## Usage
```ruby
require "spall"
@input = UniMIDI::Input.gets
@player = Spall::SamplePlayer.new(@input) do
note("C1") { play("kick.wav") }
note("D1") { play("snare1.wav") }
note("E1") { play("snare2.wav") }
note("Bb1") { play("hihat.wav") }
end
@player.start
```
## License
Licensed under Apache 2.0, See the file LICENSE
Copyright (c) 2015 [Ari Russo](http://arirusso.com)