mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-20 01:58:34 +00:00
Merge pull request #136 from tidalcycles/on-trigger
add onTrigger helper
This commit is contained in:
commit
25795eaecc
@ -1049,6 +1049,9 @@ export class Pattern {
|
|||||||
.unit('c')
|
.unit('c')
|
||||||
.slow(factor);
|
.slow(factor);
|
||||||
}
|
}
|
||||||
|
onTrigger(onTrigger) {
|
||||||
|
return this._withHap((hap) => hap.setContext({ ...hap.context, onTrigger }));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO - adopt value.mjs fully..
|
// TODO - adopt value.mjs fully..
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user