Skip to content

d4h0/modularscale

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Calculate a modular scale

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 85.2%
  • Makefile 14.8%