fix: csound + dough timing

This commit is contained in:
Felix Roos 2024-05-03 00:42:13 +02:00
parent 91bb0a1d36
commit 8db443ba26
2 changed files with 6 additions and 4 deletions

View file

@ -74,6 +74,6 @@ export const dough = async (code) => {
worklet.node.connect(ac.destination);
};
export function doughTrigger(t, hap, currentTime, duration, cps) {
window.postMessage({ time: t, dough: hap.value, currentTime, duration, cps });
export function doughTrigger(time_deprecate, hap, currentTime, cps, targetTime) {
window.postMessage({ time: targetTime, dough: hap.value, currentTime, duration: hap.duration, cps });
}