tiny time improvement

This commit is contained in:
Felix Roos 2022-11-29 23:02:09 +01:00
parent 0a098e3008
commit 517ada6dbf

View File

@ -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