From cc445e89a36cd96400f9641fbba56cbb15556bff Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 23 Apr 2022 09:21:40 +0100 Subject: [PATCH] cat/append/fastcat/slowcat as pattern methods --- packages/core/pattern.mjs | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/packages/core/pattern.mjs b/packages/core/pattern.mjs index 8f1f7d61..c2f2a17c 100644 --- a/packages/core/pattern.mjs +++ b/packages/core/pattern.mjs @@ -598,10 +598,6 @@ export class Pattern { return slowcatPrime(...pats); } - append(other) { - return fastcat(...[this, other]); - } - rev() { const pat = this; const query = function (state) { @@ -644,14 +640,30 @@ export class Pattern { return this.juxBy(1, func); } - // is there a different name for those in tidal? stack(...pats) { return stack(this, ...pats); } + sequence(...pats) { return sequence(this, ...pats); } + cat(...pats) { + return cat(this, ...pats); + } + + append(...pats) { + return cat(this, ...pats); + } + + fastcat(...pats) { + return fastcat(this, ...pats); + } + + slowcat(...pats) { + return slowcat(this, ...pats); + } + superimpose(...funcs) { return this.stack(...funcs.map((func) => func(this))); }