From 517ada6dbf90cd0d8635bb63d3f3ecfa99543912 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Tue, 29 Nov 2022 23:02:09 +0100 Subject: [PATCH] tiny time improvement --- packages/csound/csound.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/csound/csound.mjs b/packages/csound/csound.mjs index 80b0fddf..ab80dd6f 100644 --- a/packages/csound/csound.mjs +++ b/packages/csound/csound.mjs @@ -22,7 +22,7 @@ Pattern.prototype._csound = function (instrument) { // http://www.csounds.com/manual/html/i.html const params = [ `"${instrument}"`, // p1: instrument name - time - currentTime, //.toFixed(precision), // p2: starting time in arbitrary unit called beats + time - getAudioContext().currentTime, //.toFixed(precision), // p2: starting time in arbitrary unit called beats hap.duration + 0, // p3: duration in beats // instrument specific params: freq, //.toFixed(precision), // p4: frequency