tiny time improvement
This commit is contained in:
parent
0a098e3008
commit
517ada6dbf
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue