JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q25109F
  • License ISC

A super-simple javascript music framework

Package Exports

  • musie

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (musie) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

musie.js build status

A super-simple javascript music framework. By referencing a note name and (optionally) a scale or chord, this library will return one or a series of note objects.

Install

npm install musie

Examples

var musie = require('musie');

musie.get('A4');
/*
Returns A4:
[{
    name: A4,
    number: 57,
    frequency: 220.00
}]
*/

musie.get('A4', 'major');
/*
Returns major scale starting from A4:
[
    {
        name: A4,
        number: 57,
        frequency: 220.00
    },
    {
        name: 'B3',
        number: 59,
        frequency: 246.94
    },
    {
        name: 'C#4',
        number: 61,
        frequency: 277.18
    },
    and so on....
]
*/

Available chords

Chord Reference
minor m
major M

Available scales

Scale Reference
Chromatic chromatic
Major Pentatonic majpentatonic
Minor Pentatonic minpentatonic
Major Scale major
Aeolian Mode aeolian