add striate()
This commit is contained in:
parent
eccb20c3b7
commit
1d56d79757
1 changed files with 8 additions and 0 deletions
|
|
@ -496,6 +496,13 @@ export class Pattern {
|
||||||
return this._squeezeBind(func);
|
return this._squeezeBind(func);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_striate(n) {
|
||||||
|
const slices = Array.from({ length: n }, (x, i) => i);
|
||||||
|
const slice_objects = slices.map((i) => ({ begin: i / n, end: (i + 1) / n }));
|
||||||
|
const slicePat = slowcat(...slice_objects);
|
||||||
|
return this.union(slicePat)._fast(n);
|
||||||
|
}
|
||||||
|
|
||||||
// cpm = cycles per minute
|
// cpm = cycles per minute
|
||||||
_cpm(cpm) {
|
_cpm(cpm) {
|
||||||
return this._fast(cpm / 60);
|
return this._fast(cpm / 60);
|
||||||
|
|
@ -732,6 +739,7 @@ Pattern.prototype.patternified = [
|
||||||
'linger',
|
'linger',
|
||||||
'ply',
|
'ply',
|
||||||
'segment',
|
'segment',
|
||||||
|
'striate',
|
||||||
'slow',
|
'slow',
|
||||||
'velocity',
|
'velocity',
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue