Made on Ruby 3.0.2
Beats-in-ruby
needs two system packages:
- ffplay
- libfftw3-dev
Both are available for Mac and Linux users.
sudo apt-get install ffplay libfftw3-dev libfftw3-doc
rvm install "ruby-3.0.2"
git clone [email protected]:brolim/beats-in-ruby.git
cd beats-in-ruby
bundle install
Loading...
beats = Beats.new
beats.play_scale('C', :minor)
See play.rb
file to run the examples.
You may want to run the default example. To do that, use the following command:
cd path-to/beats-in-ruby
ruby play.rb