Merge remote-tracking branch 'origin/main' into repl-package

This commit is contained in:
Felix Roos 2022-05-15 22:55:31 +02:00
commit 999251e137
3 changed files with 24 additions and 5 deletions

View file

@ -57,7 +57,14 @@ function useRepl({ tune, defaultSynth, autolink = true, onEvent, onDraw: onDrawP
/* console.warn('no instrument chosen', event);
throw new Error(`no instrument chosen for ${JSON.stringify(event)}`); */
} else {
onTrigger(time, event, currentTime);
onTrigger(
time,
event,
currentTime,
1 /* cps */,
event.wholeOrPart().begin.valueOf(),
event.duration.valueOf(),
);
}
} catch (err) {
console.warn(err);