total-serialism
Advanced tools
Comparing version 1.6.5 to 1.6.6
38
index.js
@@ -13,26 +13,26 @@ //============================================================================== | ||
// require the various libraries | ||
const Generative = require('./src/gen-basic.js'); | ||
const Algorithmic = require('./src/gen-complex.js'); | ||
const Stochastic = require('./src/gen-stochastic.js'); | ||
const Transform = require('./src/transform.js'); | ||
const Translate = require('./src/translate.js'); | ||
const Utility = require('./src/utility.js'); | ||
const Generative = require('./src/gen-basic.js'); | ||
const Algorithmic = require('./src/gen-complex.js'); | ||
const Stochastic = require('./src/gen-stochastic.js'); | ||
const Transform = require('./src/transform.js'); | ||
const Translate = require('./src/translate.js'); | ||
const Utility = require('./src/utility.js'); | ||
// export the various libraries | ||
exports.Generative = Generative; | ||
exports.Generative = Generative; | ||
exports.Algorithmic = Algorithmic; | ||
exports.Stochastic = Stochastic; | ||
exports.Transform = Transform; | ||
exports.Translate = Translate; | ||
exports.Utility = Utility; | ||
exports.Stochastic = Stochastic; | ||
exports.Transform = Transform; | ||
exports.Translate = Translate; | ||
exports.Utility = Utility; | ||
// Methods exposed to global scope | ||
exports.getSettings = Translate.getSettings; | ||
exports.setTempo = Translate.setTempo; | ||
exports.getTempo = Translate.getTempo; | ||
exports.setBPM = Translate.setTempo; | ||
exports.getBPM = Translate.getTempo; | ||
exports.setScale = Translate.setScale; | ||
exports.getScale = Translate.getScale; | ||
exports.setRoot = Translate.setRoot; | ||
exports.getRoot = Translate.getRoot; | ||
exports.setTempo = Translate.setTempo; | ||
exports.getTempo = Translate.getTempo; | ||
exports.setBPM = Translate.setTempo; | ||
exports.getBPM = Translate.getTempo; | ||
exports.setScale = Translate.setScale; | ||
exports.getScale = Translate.getScale; | ||
exports.setRoot = Translate.setRoot; | ||
exports.getRoot = Translate.getRoot; |
{ | ||
"name": "total-serialism", | ||
"version": "1.6.5", | ||
"version": "1.6.6", | ||
"description": "A set of methods for the generation and transformation of number sequences useful in algorithmic composition", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"test": "node test/serialism.test.js", | ||
"build": "npm run clean && npm run bundle && npm run build-es5", | ||
"build": "npm run clean && npm run bundle && npm run build-es5 && npm run build-min", | ||
"clean": "rm -rf build", | ||
@@ -11,0 +11,0 @@ "bundle": "mkdir build && browserify --standalone Bundle index.js > build/ts.bundle.js", |
@@ -82,3 +82,3 @@ //============================================================================== | ||
} else { | ||
arr = new Array(len).fill(0); | ||
let arr = new Array(len).fill(0); | ||
return rotate(a.concat(arr), Math.floor(shift*div)); | ||
@@ -126,3 +126,3 @@ } | ||
for (var k in args){ | ||
v = args[k][i]; | ||
let v = args[k][i]; | ||
if (v != undefined){ arr.push(v); } | ||
@@ -151,3 +151,3 @@ } | ||
for (var k in args){ | ||
v = args[k][i]; | ||
let v = args[k][i]; | ||
if (v != undefined){ a.push(v); } | ||
@@ -154,0 +154,0 @@ } |
// const entryPoint = "../index"; | ||
// const entryPoint = "../build/ts.bundle.js"; | ||
const entryPoint = "../build/ts.es5.js"; | ||
// const entryPoint = "../build/ts.es5.js"; | ||
const entryPoint = "../build/ts.es5.min.js"; | ||
@@ -6,0 +7,0 @@ const Srl = require(entryPoint); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1912659
21
25428
1
1
37