JSPM

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

A super-simple javascript music utility

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 utility. By referencing a note name and (optionally) a scale or chord, this library will return one or a series of note objects. Check it out in action at:

Install

npm install musie

Examples

var musie = require('musie');

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

musie.get('A3', 'major');
/*
Returns major scale starting from A3:
[
    {
        name: A3,
        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
Minor 7 m7
Major 7 maj7
Dominant 7 dom7
Diminished 7 dim7

Available scales

Scale Reference
Chromatic chromatic
Major major
Natural Minor natural_minor
Harmonic Minor harmonic_minor
Melodic_minor melodic_minor
Phrygian mode phrygian
Lydian mode lydian
Mixolydian mode mixolydian
Locrian mode locrian
Whole tone whole_tone
Blues scale blues
Major blues scale major_blues
Minor pentatonic minor_pentatonic
Major pentatonic major_pentatonic
Diminished scale diminished
Whole half diminished scale whole_half
Dorian b2 dorian_b2
Lydian augmented lydian_augmented
Lydian dominant lydian_dominant
Mixolydian b6 mixolydian_b6
Half diminished half_diminished
Altered scale altered
Augmented scale augmented
Bebop dominant bebop_dominant
Bebop major bebop_major
Bebop minor bebop_minor
Bebop dorian bebop_dorian