Addition: adding the negative euclidean rhythm function
This commit is contained in:
14
src/API.ts
14
src/API.ts
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user