mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-23 11:38:37 +00:00
move osc/superdirt to core/controls
This commit is contained in:
parent
e28a411408
commit
acca363a4e
@ -1,37 +0,0 @@
|
|||||||
import { Pattern, sequence } from '@strudel.cycles/core/strudel.mjs';
|
|
||||||
|
|
||||||
const _name = (name, ...pats) => sequence(...pats).withValue((x) => ({ [name]: x }));
|
|
||||||
|
|
||||||
const _unionise = (func) =>
|
|
||||||
function (...pats) {
|
|
||||||
return this.union(func(...pats));
|
|
||||||
};
|
|
||||||
|
|
||||||
export const s = (...pats) => _name('s', ...pats);
|
|
||||||
Pattern.prototype.s = _unionise(s);
|
|
||||||
export const sound = s;
|
|
||||||
Pattern.prototype.sound = Pattern.prototype.s;
|
|
||||||
|
|
||||||
export const n = (pat) => _name('n', pat);
|
|
||||||
Pattern.prototype.n = _unionise(n);
|
|
||||||
export const number = n;
|
|
||||||
Pattern.prototype.number = Pattern.prototype.n;
|
|
||||||
|
|
||||||
export const room = (pat) => _name('room', pat);
|
|
||||||
Pattern.prototype.room = _unionise(room);
|
|
||||||
|
|
||||||
export const size = (pat) => _name('size', pat);
|
|
||||||
Pattern.prototype.size = _unionise(size);
|
|
||||||
|
|
||||||
export const speed = (pat) => _name('speed', pat);
|
|
||||||
Pattern.prototype.speed = _unionise(speed);
|
|
||||||
|
|
||||||
export const squiz = (pat) => _name('squiz', pat);
|
|
||||||
Pattern.prototype.squiz = _unionise(squiz);
|
|
||||||
|
|
||||||
// currently overwritten by tone package
|
|
||||||
export const gain = (pat) => _name('gain', pat);
|
|
||||||
Pattern.prototype.gain = _unionise(gain);
|
|
||||||
|
|
||||||
export const vowel = (pat) => _name('vowel', pat);
|
|
||||||
Pattern.prototype.vowel = _unionise(vowel);
|
|
||||||
@ -29,9 +29,9 @@ import '@strudel.cycles/core/euclid.mjs';
|
|||||||
import '@strudel.cycles/tone/pianoroll.mjs';
|
import '@strudel.cycles/tone/pianoroll.mjs';
|
||||||
import '@strudel.cycles/tone/draw.mjs';
|
import '@strudel.cycles/tone/draw.mjs';
|
||||||
import '@strudel.cycles/osc/osc.mjs';
|
import '@strudel.cycles/osc/osc.mjs';
|
||||||
import * as superdirt from '@strudel.cycles/osc/superdirt.mjs';
|
import * as controls from '@strudel.cycles/core/controls.mjs';
|
||||||
|
|
||||||
extend(Tone, strudel, superdirt, strudel.Pattern.prototype.bootstrap(), toneHelpers, voicingHelpers, drawHelpers, uiHelpers, {
|
extend(Tone, strudel, strudel.Pattern.prototype.bootstrap(), controls, toneHelpers, voicingHelpers, drawHelpers, uiHelpers, {
|
||||||
gist,
|
gist,
|
||||||
euclid,
|
euclid,
|
||||||
mini,
|
mini,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user