Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 763 Bytes

README.md

File metadata and controls

40 lines (31 loc) · 763 Bytes

Beats-in-Ruby

Made on Ruby 3.0.2

Requirements

Beats-in-ruby needs two system packages:

  • ffplay
  • libfftw3-dev

Both are available for Mac and Linux users.

Instalation for Ubuntu (tested on Ubuntu 21.04)

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

Instalation for Mac

Loading...

Usage

beats = Beats.new
beats.play_scale('C', :minor)

Examples

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

References

Haskel Music from github@tsoding