Reinstate slice and splice (#500)

Reinstate slice/splice, fixing up "unit" param using new global cps
This commit is contained in:
Alex McLean 2023-03-02 14:44:41 +00:00 committed by GitHub
parent fdc4819e39
commit 2d5064bd5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 37 additions and 27 deletions

View file

@ -21,7 +21,7 @@ export function repl({
onTrigger: async (hap, deadline, duration, cps) => {
try {
if (!hap.context.onTrigger || !hap.context.dominantTrigger) {
await defaultOutput(hap, deadline, duration);
await defaultOutput(hap, deadline, duration, cps);
}
if (hap.context.onTrigger) {
// call signature of output / onTrigger is different...