mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-24 03:58:53 +00:00
tiny time improvement
This commit is contained in:
parent
0a098e3008
commit
517ada6dbf
@ -22,7 +22,7 @@ Pattern.prototype._csound = function (instrument) {
|
|||||||
// http://www.csounds.com/manual/html/i.html
|
// http://www.csounds.com/manual/html/i.html
|
||||||
const params = [
|
const params = [
|
||||||
`"${instrument}"`, // p1: instrument name
|
`"${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
|
hap.duration + 0, // p3: duration in beats
|
||||||
// instrument specific params:
|
// instrument specific params:
|
||||||
freq, //.toFixed(precision), // p4: frequency
|
freq, //.toFixed(precision), // p4: frequency
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user