modularscale
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/modularscale package

    2.0.1 • Public • Published

    modularscale

    Calculate a modular scale

    Idea from http://www.modularscale.com/

    Install

    npm install modularscale

    Usage

    var ms = require('modularscale');
     
    // Defaults to using golden ratio
    ms(1);
    // --> 1.618
     
    // Set desired ratio
    ms(1, "minor second");
    // --> 1.066
     
    // See modularscale.com for the full list of preset ratios.
    // You can also pass it any ratio you'd like.

    Install

    npm i modularscale

    DownloadsWeekly Downloads

    25,653

    Version

    2.0.1

    License

    MIT

    Last publish

    Collaborators

    • kylemathews