npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

musie

v1.0.9

Published

A super-simple javascript music utility

Downloads

5

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:

  • https://www.musie.io/
  • http://music-improviser.herokuapp.com/

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 |