The geekiest way to print guitar chords. Simple and just works.
Add this line to your application's Gemfile:
gem 'anchord'
And then execute:
$ bundle
Or install it yourself as:
$ gem install anchord
- Include Anchord in your ruby file:
require 'anchord'
- Use
Anchord.play [chord_symbol]
to play a chord:Anchord.play :G
- Include Anchord upon running IRB:
irb -Ilib -r anchord
- Use
Anchord.play [chord_symbol]
to play a chord:Anchord.play :G
- Create a file that ends with
_chords.rb
and put it underlib/achord/chords
directory. - Add a chord using the following DSL:
add_chord do
name "chord name"
coordinate [1,2,3,4,5,6] # Finger position with the following string format: E A D G B e
end
- Fork it ( https://github.com/ejaypcanaria/anchord/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request