Skip to content

brolim/beats-in-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Playing with sound waves in ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages