Merge pull request #136 from tidalcycles/on-trigger

add onTrigger helper
This commit is contained in:
Felix Roos 2022-06-16 21:58:37 +02:00 committed by GitHub
commit 25795eaecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1049,6 +1049,9 @@ export class Pattern {
.unit('c')
.slow(factor);
}
onTrigger(onTrigger) {
return this._withHap((hap) => hap.setContext({ ...hap.context, onTrigger }));
}
}
// TODO - adopt value.mjs fully..