Add this line to your application's Gemfile:
gem 'midi_lyrics'
And then execute:
$ bundle
Or install it yourself as:
$ gem install midi_lyrics
>> MidiLyrics::Parser.new("test.mid").extract
=> [
{ text: "Test", start: 0, start2: 0.0, duration: 0.417 },
{ text: "ing", start: 0.5, start2: 0.0, duration: 0.417 },
{ text: "\r\n", start: 0.917, start2: 0.0, duration: 0.0 }
]
- Fork it
- 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 new Pull Request