add _processParts()

This commit is contained in:
Alex McLean
2025-10-23 15:05:39 +01:00
parent ccb5ec1685
commit 39e2221c29
+5
View File
@@ -62,7 +62,12 @@ export class Pattern {
this.__steps = steps === undefined ? undefined : Fraction(steps);
}
_processParts() {
return this.withHap((hap) => hap.withContext((c) => ({ ...c, processParts: true })));
}
setSteps(steps) {
// TODO should this be pure?
this._steps = steps;
return this;
}