mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-13 14:48:36 +00:00
+ seperate parse / evaluate + add Pattern.edit + move string hacks to evaluate + automate eval scoping with globalThis + add random tune button + mini: handle angle brackets + add chordBass + fix old tunes
11 lines
321 B
TypeScript
11 lines
321 B
TypeScript
import { Pattern as _Pattern } from '../../strudel.mjs';
|
|
|
|
const Pattern = _Pattern as any;
|
|
|
|
// is this the same as struct?
|
|
Pattern.prototype.groove = function (groove) {
|
|
return groove.fmap(() => (v) => v).appLeft(this);
|
|
};
|
|
|
|
Pattern.prototype.define('groove', (groove, pat) => pat.groove(groove), { composable: true });
|