2.0.1 • Published 7 years ago

modularscale v2.0.1

Weekly downloads
57,472
License
MIT
Repository
github
Last release
7 years ago

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.