allow absolute time for superdough with prefix =

This commit is contained in:
Felix Roos 2024-03-21 22:37:15 +01:00
parent 0565558e21
commit 10bd668033

View File

@ -272,6 +272,7 @@ export const superdough = async (value, t, hapDuration) => {
// duration is passed as value too..
value.duration = hapDuration;
// calculate absolute time
t = typeof t === 'string' && t.startsWith('=') ? Number(t.slice(1)) : ac.currentTime + t;
// destructure
let {
s = 'triangle',