Anchord
The geekiest way to print guitar chords. Simple and just works.
Installation
Add this line to your application's Gemfile:
gem 'anchord'And then execute:
$ bundle
Or install it yourself as:
$ gem install anchord
Usage
- Include Anchord in your ruby file:
require 'anchord' - Use
Anchord.play [chord_symbol]to play a chord:Anchord.play :G
Usage on IRB
- Include Anchord upon running IRB:
irb -Ilib -r anchord - Use
Anchord.play [chord_symbol]to play a chord:Anchord.play :G
Adding additional chords to the library
- Create a file that ends with
_chords.rband put it underlib/achord/chordsdirectory. - 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
endContributing
- 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