making plans

This commit is contained in:
2023-08-27 19:29:38 +02:00
parent 96e35f4c2e
commit 1e0a0d1268
2 changed files with 69 additions and 6 deletions

View File

@ -958,7 +958,16 @@ export class UserAPI {
*/
return this._euclidean_cycle(pulses, length, rotate)[iterator % length];
};
ec = this.euclid;
ec: Function = this.euclid;
public rhythm = (
div: number,
pulses: number,
length: number,
rotate: number = 0
): boolean => {
return this.mod(div) && this._euclidean_cycle(pulses, length, rotate).div(div);
}
_euclidean_cycle(
pulses: number,