Skip to content

Commit 4837dab

Browse files
committed
small fix in expand
1 parent 5b7383c commit 4837dab

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

build/ts.bundle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/ts.es5.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/ts.es5.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "total-serialism",
3-
"version": "2.1.3",
3+
"version": "2.1.4",
44
"description": "A set of methods for the generation and transformation of number sequences useful in algorithmic composition",
55
"main": "index.js",
66
"scripts": {

src/gen-stochastic.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ function expand(a=[0, 0], l=1){
314314
let arr = a.slice();
315315
let acc = arr[arr.length-1];
316316
// accumulate the change and store in array
317-
for (let c in chg){
317+
for (let c=0; c<chg.length; c++){
318318
arr.push(acc += chg[c]);
319319
}
320320
return arr;

0 commit comments

Comments
 (0)