add euclid

This commit is contained in:
Felix Roos
2022-03-17 15:03:57 +01:00
parent eaa250a962
commit 91c0a46ba9
10 changed files with 100 additions and 21 deletions
+2
View File
@@ -14,6 +14,8 @@ const applyOptions = (parent: any) => (pat: any, i: number) => {
case 'stretch':
const speed = new Fraction(operator.arguments_.amount).inverse().valueOf();
return reify(pat).fast(speed);
case 'bjorklund':
return pat.euclid(operator.arguments_.pulse, operator.arguments_.step, operator.arguments_.rotation);
// TODO: case 'fixed-step': "%"
}
console.warn(`operator "${operator.type_}" not implemented`);