total-serialism
Advanced tools
Comparing version 1.6.10 to 1.6.11
{ | ||
"name": "total-serialism", | ||
"version": "1.6.10", | ||
"version": "1.6.11", | ||
"description": "A set of methods for the generation and transformation of number sequences useful in algorithmic composition", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -326,10 +326,10 @@ //============================================================================== | ||
function divisionToMs(a=['1'], bpm){ | ||
var measureMs = notation.measureInMs; | ||
let measureMs = notation.measureInMs; | ||
if (bpm !== undefined) { | ||
measureMs = 60000.0 / Math.max(1, Number(bpm)) * 4; | ||
} | ||
var v = (!Array.isArray(a))? [a] : a; | ||
let v = (!Array.isArray(a))? [a] : a; | ||
return v.map(x => { | ||
// match all division symbols: eg. 1/4, 5/16 | ||
d = /^\d+(\/\d+)?$/; | ||
let d = /^\d+(\/\d+)?$/; | ||
x = (typeof x === 'string' && d.test(x))? eval(x) : x; | ||
@@ -349,6 +349,6 @@ return x * measureMs; | ||
function divisionToRatio(a=['1']){ | ||
var v = (!Array.isArray(a))? [a] : a; | ||
let v = (!Array.isArray(a))? [a] : a; | ||
return v.map(x => { | ||
// match all division symbols: eg. 1/4, 5/16 | ||
d = /^\d+(\/\d+)?$/; | ||
let d = /^\d+(\/\d+)?$/; | ||
return (typeof x === 'string' && d.test(x))? eval(x) : x; | ||
@@ -355,0 +355,0 @@ }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1423567