New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

interval-notation

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

interval-notation

Parse and build music intervals in shorthand notation

0.1.0
Source
npm
Version published
Weekly downloads
15
-70.59%
Maintainers
1
Weekly downloads
 
Created
Source

interval-notation npm

Build Status Code Climate js-standard-style

Parse music intervals in shorthand notation with javascript. Given a string, obtain a hash with interval components and properties (including interval size in semitones). Given an interval properties, build a string.

Usage

Install via npm: npm i --save interval-notation and require it:

var interval = require('interval-notation')
interval.parse('M3') // => { num: 3, q: 'M', dir: 1, simple: 3,
                     //      type: 'M', alt: 0, oct: 0, size: 4 }
interval.shorthand(3, 0, 0, 1) // => 'M3'

## Tests and documentation

You can read the generated API documentation here

To run the test clone this repo and:

npm i
npm test

License

MIT License

Keywords

interval

FAQs

Package last updated on 23 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts