refactor: duration is now a regular control

This commit is contained in:
Felix Roos 2024-02-29 04:05:05 +01:00
parent f779e81993
commit eb93a6c149
6 changed files with 26 additions and 13 deletions

View file

@ -15,7 +15,6 @@ const hap2value = (hap) => {
return { ...hap.value, velocity: hap.context.velocity };
};
// TODO: bind logger
export const webaudioOutputTrigger = (t, hap, ct, cps) => superdough(hap2value(hap), t - ct, hap.duration / cps, cps);
export const webaudioOutput = (hap, deadline, hapDuration) => superdough(hap2value(hap), deadline, hapDuration);