npm.io
0.1.8 • Published 11 years ago

music-analysis

Licence
MIT
Version
0.1.8
Deps
3
Vulns
0
Weekly
0
Stars
3

Music Analysis Package

Get some information about MusicXML files and (experimentally) find out how hard it might be to play!

Installation

$ npm install music-analysis

Or you can download the ZIP.

Usage

It's easy to use asynchronously in your Node.js programs:

var music = require('music-analysis');

music.parseMXLFile('AwesomeScore.mxl', function(score) {
    var parts = score.parts;
    parts.forEach(function(part) {
        var stats = part.getRawStats();
        var m = stats.numMeasures;

        console.log('This part has ' + m + ' measures.')
    });
});

You can also check out the ./examples/.

Contributing?

Yes, please! Feel free to send pull requests :)