add euclid
This commit is contained in:
parent
eaa250a962
commit
91c0a46ba9
10 changed files with 100 additions and 21 deletions
|
|
@ -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`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue