mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-25 04:28:30 +00:00
cat/append/fastcat/slowcat as pattern methods
This commit is contained in:
parent
1d56d79757
commit
cc445e89a3
@ -598,10 +598,6 @@ export class Pattern {
|
|||||||
return slowcatPrime(...pats);
|
return slowcatPrime(...pats);
|
||||||
}
|
}
|
||||||
|
|
||||||
append(other) {
|
|
||||||
return fastcat(...[this, other]);
|
|
||||||
}
|
|
||||||
|
|
||||||
rev() {
|
rev() {
|
||||||
const pat = this;
|
const pat = this;
|
||||||
const query = function (state) {
|
const query = function (state) {
|
||||||
@ -644,14 +640,30 @@ export class Pattern {
|
|||||||
return this.juxBy(1, func);
|
return this.juxBy(1, func);
|
||||||
}
|
}
|
||||||
|
|
||||||
// is there a different name for those in tidal?
|
|
||||||
stack(...pats) {
|
stack(...pats) {
|
||||||
return stack(this, ...pats);
|
return stack(this, ...pats);
|
||||||
}
|
}
|
||||||
|
|
||||||
sequence(...pats) {
|
sequence(...pats) {
|
||||||
return sequence(this, ...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) {
|
superimpose(...funcs) {
|
||||||
return this.stack(...funcs.map((func) => func(this)));
|
return this.stack(...funcs.map((func) => func(this)));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user