Addition: adding the negative euclidean rhythm function

This commit is contained in:
2024-02-19 16:12:34 +01:00
parent 694b994227
commit 2ee66cd9fb

View File

@ -1602,6 +1602,20 @@ export class UserAPI {
};
ry = this.rhythm;
public nrhythm = (
div: number,
pulses: number,
length: number,
rotate: number = 0,
): boolean => {
let rhythm = this._euclidean_cycle(pulses, length, rotate).map(n => !n)
return (
this.beat(div) && rhythm.beat(div)
);
};
nry = this.nrhythm;
_euclidean_cycle(
pulses: number,
length: number,