modularscale
Calculate a value from a modular scale
Last updated 12 years ago by kylemathews .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install modularscale 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 2.0.1                                ...           latest (10 years ago)

5 Versions

  • 2.0.1                                ...           10 years ago
  • 2.0.0                                ...           10 years ago
  • 1.0.2                                ...           12 years ago
  • 1.0.1                                ...           12 years ago
  • 1.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 22
Today 0
This Week 4
This Month 12
Last Day 0
Last Week 3
Last Month 6
Dependencies (1)
Dev Dependencies (6)

© 2010 - cnpmjs.org x YWFE | Home | YWFE