refactor: legato -> clip

This commit is contained in:
Felix Roos 2023-06-14 00:22:55 +02:00
parent 5e90021698
commit 260b831815
10 changed files with 3333 additions and 3107 deletions

View file

@ -118,7 +118,7 @@ const maxPan = noteToMidi('C8');
const panwidth = (pan, width) => pan * width + (1 - width) / 2;
Pattern.prototype.piano = function () {
return this.clip(1)
return this.fmap((v) => ({ ...v, clip: v.clip ?? 1 })) // set clip if not already set..
.s('piano')
.release(0.1)
.fmap((value) => {