mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-26 13:08:28 +00:00
commit
cf7b2b2acf
1974
package-lock.json
generated
1974
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
19
packages/core/package-lock.json
generated
19
packages/core/package-lock.json
generated
@ -6,12 +6,11 @@
|
|||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@strudel.cycles/core",
|
"name": "@strudel.cycles/core",
|
||||||
"version": "0.0.1",
|
"version": "0.0.3",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bjork": "^0.0.1",
|
"bjork": "^0.0.1",
|
||||||
"fraction.js": "^4.2.0",
|
"fraction.js": "^4.2.0"
|
||||||
"ramda": "^0.28.0"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"mocha": "^9.2.2"
|
"mocha": "^9.2.2"
|
||||||
@ -733,15 +732,6 @@
|
|||||||
"url": "https://github.com/sponsors/jonschlinkert"
|
"url": "https://github.com/sponsors/jonschlinkert"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/ramda": {
|
|
||||||
"version": "0.28.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/ramda/-/ramda-0.28.0.tgz",
|
|
||||||
"integrity": "sha512-9QnLuG/kPVgWvMQ4aODhsBUFKOUmnbUnsSXACv+NCQZcHbeb+v8Lodp8OVxtRULN1/xOyYLLaL6npE6dMq5QTA==",
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/ramda"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/randombytes": {
|
"node_modules/randombytes": {
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
|
||||||
@ -1485,11 +1475,6 @@
|
|||||||
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
|
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"ramda": {
|
|
||||||
"version": "0.28.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/ramda/-/ramda-0.28.0.tgz",
|
|
||||||
"integrity": "sha512-9QnLuG/kPVgWvMQ4aODhsBUFKOUmnbUnsSXACv+NCQZcHbeb+v8Lodp8OVxtRULN1/xOyYLLaL6npE6dMq5QTA=="
|
|
||||||
},
|
|
||||||
"randombytes": {
|
"randombytes": {
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
|
||||||
|
|||||||
@ -26,8 +26,7 @@
|
|||||||
"homepage": "https://strudel.tidalcycles.org",
|
"homepage": "https://strudel.tidalcycles.org",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bjork": "^0.0.1",
|
"bjork": "^0.0.1",
|
||||||
"fraction.js": "^4.2.0",
|
"fraction.js": "^4.2.0"
|
||||||
"ramda": "^0.28.0"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"mocha": "^9.2.2"
|
"mocha": "^9.2.2"
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
import Fraction from './fraction.mjs';
|
import Fraction from './fraction.mjs';
|
||||||
import { compose } from 'ramda'; // will remove this as soon as compose is implemented here
|
import { isNote, toMidi, compose } from './util.mjs';
|
||||||
import { isNote, toMidi } from './util.mjs';
|
|
||||||
|
|
||||||
// Removes 'None' values from given list
|
// Removes 'None' values from given list
|
||||||
const removeUndefineds = (xs) => xs.filter((x) => x != undefined);
|
const removeUndefineds = (xs) => xs.filter((x) => x != undefined);
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { strict as assert } from 'assert';
|
import { strict as assert } from 'assert';
|
||||||
import { isNote, tokenizeNote, toMidi, mod } from '../util.mjs';
|
import { isNote, tokenizeNote, toMidi, mod, compose } from '../util.mjs';
|
||||||
|
|
||||||
describe('isNote', () => {
|
describe('isNote', () => {
|
||||||
it('should recognize notes without accidentals', () => {
|
it('should recognize notes without accidentals', () => {
|
||||||
@ -83,3 +83,16 @@ describe('mod', () => {
|
|||||||
assert.equal(mod(-3, 2), 1);
|
assert.equal(mod(-3, 2), 1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('compose', () => {
|
||||||
|
const add1 = (a) => a + 1;
|
||||||
|
it('should compose', () => {
|
||||||
|
assert.equal(compose(add1, add1)(0), 2);
|
||||||
|
assert.equal(compose(add1)(0), 1);
|
||||||
|
});
|
||||||
|
const addS = (s) => (a) => a + s;
|
||||||
|
it('should compose left to right', () => {
|
||||||
|
assert.equal(compose(addS('a'), addS('b'))(''), 'ab');
|
||||||
|
assert.equal(compose(addS('a'), addS('b'))('x'), 'xab');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|||||||
@ -42,3 +42,14 @@ export const getPlayableNoteValue = (event) => {
|
|||||||
|
|
||||||
// rotate array by n steps (to the left)
|
// rotate array by n steps (to the left)
|
||||||
export const rotate = (arr, n) => arr.slice(n).concat(arr.slice(0, n));
|
export const rotate = (arr, n) => arr.slice(n).concat(arr.slice(0, n));
|
||||||
|
|
||||||
|
export const pipe = (...funcs) => {
|
||||||
|
return funcs.reduce(
|
||||||
|
(f, g) =>
|
||||||
|
(...args) =>
|
||||||
|
f(g(...args)),
|
||||||
|
(x) => x,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const compose = (...funcs) => pipe(...funcs.reverse());
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { curry } from 'ramda';
|
import { curry } from './strudel.mjs';
|
||||||
|
|
||||||
function unionWithObj(a, b, func) {
|
function unionWithObj(a, b, func) {
|
||||||
const common = Object.keys(a).filter((k) => Object.keys(b).includes(k));
|
const common = Object.keys(a).filter((k) => Object.keys(b).includes(k));
|
||||||
|
|||||||
2
packages/eval/package-lock.json
generated
2
packages/eval/package-lock.json
generated
@ -6,7 +6,7 @@
|
|||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@strudel.cycles/eval",
|
"name": "@strudel.cycles/eval",
|
||||||
"version": "0.0.1",
|
"version": "0.0.3",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"estraverse": "^5.3.0",
|
"estraverse": "^5.3.0",
|
||||||
|
|||||||
2
packages/midi/package-lock.json
generated
2
packages/midi/package-lock.json
generated
@ -6,7 +6,7 @@
|
|||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@strudel.cycles/midi",
|
"name": "@strudel.cycles/midi",
|
||||||
"version": "0.0.1",
|
"version": "0.0.4",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tone": "^14.7.77",
|
"tone": "^14.7.77",
|
||||||
|
|||||||
64
packages/tonal/package-lock.json
generated
64
packages/tonal/package-lock.json
generated
@ -6,10 +6,9 @@
|
|||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@strudel.cycles/tonal",
|
"name": "@strudel.cycles/tonal",
|
||||||
"version": "0.0.1",
|
"version": "0.0.3",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@strudel.cycles/core": "^0.0.1",
|
|
||||||
"@tonaljs/tonal": "^4.6.5",
|
"@tonaljs/tonal": "^4.6.5",
|
||||||
"webmidi": "^3.0.15"
|
"webmidi": "^3.0.15"
|
||||||
}
|
}
|
||||||
@ -390,16 +389,6 @@
|
|||||||
"rollup": "^1.20.0||^2.0.0"
|
"rollup": "^1.20.0||^2.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@strudel.cycles/core": {
|
|
||||||
"version": "0.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@strudel.cycles/core/-/core-0.0.1.tgz",
|
|
||||||
"integrity": "sha512-s+swPALAfq0GbCNNii+u7Crpm0GIC6b8pYF5c20xh0wjOazX61YgIckYRue/4c6x8S4HRHR88CilB0CEo9rCZQ==",
|
|
||||||
"dependencies": {
|
|
||||||
"bjork": "^0.0.1",
|
|
||||||
"fraction.js": "^4.2.0",
|
|
||||||
"ramda": "^0.28.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@tonaljs/abc-notation": {
|
"node_modules/@tonaljs/abc-notation": {
|
||||||
"version": "4.6.5",
|
"version": "4.6.5",
|
||||||
"resolved": "https://registry.npmjs.org/@tonaljs/abc-notation/-/abc-notation-4.6.5.tgz",
|
"resolved": "https://registry.npmjs.org/@tonaljs/abc-notation/-/abc-notation-4.6.5.tgz",
|
||||||
@ -688,11 +677,6 @@
|
|||||||
"node": ">=8"
|
"node": ">=8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/bjork": {
|
|
||||||
"version": "0.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/bjork/-/bjork-0.0.1.tgz",
|
|
||||||
"integrity": "sha1-br1a3pkWSwvgMIeI1kaRQ9XJrZw="
|
|
||||||
},
|
|
||||||
"node_modules/bluebird": {
|
"node_modules/bluebird": {
|
||||||
"version": "3.7.2",
|
"version": "3.7.2",
|
||||||
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
|
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
|
||||||
@ -969,18 +953,6 @@
|
|||||||
"node": ">= 0.10"
|
"node": ">= 0.10"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/fraction.js": {
|
|
||||||
"version": "4.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz",
|
|
||||||
"integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==",
|
|
||||||
"engines": {
|
|
||||||
"node": "*"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "patreon",
|
|
||||||
"url": "https://www.patreon.com/infusion"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/fs.realpath": {
|
"node_modules/fs.realpath": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
||||||
@ -1370,15 +1342,6 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/ramda": {
|
|
||||||
"version": "0.28.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/ramda/-/ramda-0.28.0.tgz",
|
|
||||||
"integrity": "sha512-9QnLuG/kPVgWvMQ4aODhsBUFKOUmnbUnsSXACv+NCQZcHbeb+v8Lodp8OVxtRULN1/xOyYLLaL6npE6dMq5QTA==",
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/ramda"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/regenerator-runtime": {
|
"node_modules/regenerator-runtime": {
|
||||||
"version": "0.13.9",
|
"version": "0.13.9",
|
||||||
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
|
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
|
||||||
@ -1829,16 +1792,6 @@
|
|||||||
"picomatch": "^2.2.2"
|
"picomatch": "^2.2.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@strudel.cycles/core": {
|
|
||||||
"version": "0.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@strudel.cycles/core/-/core-0.0.1.tgz",
|
|
||||||
"integrity": "sha512-s+swPALAfq0GbCNNii+u7Crpm0GIC6b8pYF5c20xh0wjOazX61YgIckYRue/4c6x8S4HRHR88CilB0CEo9rCZQ==",
|
|
||||||
"requires": {
|
|
||||||
"bjork": "^0.0.1",
|
|
||||||
"fraction.js": "^4.2.0",
|
|
||||||
"ramda": "^0.28.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@tonaljs/abc-notation": {
|
"@tonaljs/abc-notation": {
|
||||||
"version": "4.6.5",
|
"version": "4.6.5",
|
||||||
"resolved": "https://registry.npmjs.org/@tonaljs/abc-notation/-/abc-notation-4.6.5.tgz",
|
"resolved": "https://registry.npmjs.org/@tonaljs/abc-notation/-/abc-notation-4.6.5.tgz",
|
||||||
@ -2112,11 +2065,6 @@
|
|||||||
"yoctodelay": "^1.1.0"
|
"yoctodelay": "^1.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bjork": {
|
|
||||||
"version": "0.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/bjork/-/bjork-0.0.1.tgz",
|
|
||||||
"integrity": "sha1-br1a3pkWSwvgMIeI1kaRQ9XJrZw="
|
|
||||||
},
|
|
||||||
"bluebird": {
|
"bluebird": {
|
||||||
"version": "3.7.2",
|
"version": "3.7.2",
|
||||||
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
|
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
|
||||||
@ -2312,11 +2260,6 @@
|
|||||||
"time-stamp": "^1.0.0"
|
"time-stamp": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fraction.js": {
|
|
||||||
"version": "4.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz",
|
|
||||||
"integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA=="
|
|
||||||
},
|
|
||||||
"fs.realpath": {
|
"fs.realpath": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
||||||
@ -2615,11 +2558,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ramda": {
|
|
||||||
"version": "0.28.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/ramda/-/ramda-0.28.0.tgz",
|
|
||||||
"integrity": "sha512-9QnLuG/kPVgWvMQ4aODhsBUFKOUmnbUnsSXACv+NCQZcHbeb+v8Lodp8OVxtRULN1/xOyYLLaL6npE6dMq5QTA=="
|
|
||||||
},
|
|
||||||
"regenerator-runtime": {
|
"regenerator-runtime": {
|
||||||
"version": "0.13.9",
|
"version": "0.13.9",
|
||||||
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
|
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
|
||||||
|
|||||||
2
packages/tone/package-lock.json
generated
2
packages/tone/package-lock.json
generated
@ -6,7 +6,7 @@
|
|||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@strudel.cycles/tone",
|
"name": "@strudel.cycles/tone",
|
||||||
"version": "0.0.1",
|
"version": "0.0.4",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tonejs/piano": "^0.2.1",
|
"@tonejs/piano": "^0.2.1",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user