Socket
Socket
Sign inDemoInstall

array-notation

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    array-notation

Convert music elements to array notation


Version published
Weekly downloads
6
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

array-notation npm version

array-notation is a collection of javascript functions to parse notes, intervals and other pitched elements to array notation.

This is part of tonal

Features

  • Parse notes and pitch classes
  • Parse intervals in short hand notation
  • Parse roman numerals
  • Parse pitched elements (scales, chords, keys)

Install

Via npm only: npm install --save array-notation

It's important to notice that you can NOT require the whole library. Instead, you must require the functions you will use.

Usage

You can parse notes to array notation with the note/parse function:

var parse = require('array-notation/note/parse')
parse('C2') // => [0, 2, null]

Read the API documentation to see all the available functions.

License

MIT License

Keywords

FAQs

Last updated on 20 Dec 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc