MusicalScore

Build Status Code Climate Gem Version

Library for representing and analysing musical score. This library is implemented along with the definitions of MusicXML mainly. The goal of this project is handling any kind of musical score as ruby class object.

Installation

Add this line to your application's Gemfile:

gem 'musical_score'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install musical_score

Usage

Here is a simple usage to import musicXML file:

require 'musical_score'

musical_score = MusicalScore::IO.import("path/to/musicxml.xml")

Now you can handle the musical score as a ruby class object.

For example, if you want to know the pitch of the first note information:

pitch = musical_score.part[0].measures[0].notes[0].pitch
puts pitch
# E3

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/yumaito/musical_score. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.