# music-analysis

> Analyzes MusicXML files and determines difficulty based on a variety of factors

Latest version **0.1.8** (published 2014-12-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install music-analysis
pnpm add music-analysis
yarn add music-analysis
bun add music-analysis
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2014-12-11 |
| First published | 2014-11-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | bburwell |

## Links

- npm: https://www.npmjs.com/package/music-analysis
- Repository: https://github.com/csi970/prototype
- Issues: https://github.com/csi970/prototype/issues
- npm.io page: https://npm.io/package/music-analysis

## Dependencies (3)

- [numbers](https://npm.io/package/numbers.md) latest
- [node-zip](https://npm.io/package/node-zip.md) latest
- [xml2json](https://npm.io/package/xml2json.md) latest

## Recent versions

- 0.1.8 (latest) — 2014-12-11
- 0.1.7 — 2014-12-04
- 0.1.6 — 2014-12-04
- 0.1.5 — 2014-12-04
- 0.1.4 — 2014-12-02
- 0.1.3 — 2014-12-02
- 0.1.2 — 2014-11-25
- 0.1.1 — 2014-11-25
- 0.1.0 — 2014-11-25

## README

## Music Analysis Package

Get some information about [MusicXML](http://www.musicxml.com) files and (experimentally) find out how hard it might be to play!

### Installation

    $ npm install music-analysis

Or you can [download the ZIP](https://github.com/csi970/prototype/archive/master.zip).

### Usage

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

```javascript
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 :)

---
_Source: https://npm.io/package/music-analysis · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
