jamming

Jamming is a Ruby library to generate images of guitar chords.

Installation

gem install jamming

or if you are using Bundler, add this line to your Gemfile:

gem "jamming"

Usage

File.open("/tmp/old_good_jimi.png", 'w') do |f|
   chord = Jamming::Chord.new("0-7-6-7-8-x")
   f.write chord.to_png(:label => "Em7#9")
end

This will write Em7#9, The Jimi Hendrix Chord, to tmp/old_good_jimi.png:

Em7#9 - The Jimi Hendrix Chord

Thanks

Some code based on ander/chords, thanks!

Contributing to jamming

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
  • Fork the project
  • Start a feature/bugfix branch
  • Commit and push until you are happy with your contribution
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright (c) 2010 Andrés Mejía. See LICENSE.txt for further details.

Other important notes

You suck if you don't play guitar, kthxbai.