Sm-808: Drum Machine Sequencer
- Programming a Sequencer for a Drum Machine: A Ruby Implementation of the famous "four on the floor" rhythm pattern
- Overview of how to install:
Setting up Sm-808 locally
- Download the gem locally
- This Ruby gem was developed using ruby 2.4.1.
gem install bundler
bundle install
Running Sm-808 locally:
- Run
ruby lib/sm808/cli.rb
from the root directory. - Create your Drum Machine Sequencer by going through the interactive terminal-based prompts
Running the test-suite locally:
- For testing:
- this gem uses RSpec as its testing framework
- run
rspec spec
for the entire test-suite - run
rspec spec/music_spec.rb
to run themusic_spec.rb
spec file - run
rspec spec/pattern_spec.rb
to run thepattern_spec.rb
spec file - run
rspec spec/score_spec.rb
to run thescore_spec.rb
spec file
Install Sm808 globally
Feel free to skip locally setting up:
gem install sm808
- type
sm808
to run through the interactive terminal-based prompts - Enjoy your drum machine sequencer!
License
The gem is available as open source under the terms of the MIT License.