scheduling in a worker, draft
This commit is contained in:
parent
4511732252
commit
0565558e21
7 changed files with 677 additions and 20 deletions
|
|
@ -260,7 +260,7 @@ export function resetGlobalEffects() {
|
|||
analysersData = {};
|
||||
}
|
||||
|
||||
export const superdough = async (value, deadline, hapDuration) => {
|
||||
export const superdough = async (value, t, hapDuration) => {
|
||||
const ac = getAudioContext();
|
||||
if (typeof value !== 'object') {
|
||||
throw new Error(
|
||||
|
|
@ -272,7 +272,6 @@ export const superdough = async (value, deadline, hapDuration) => {
|
|||
// duration is passed as value too..
|
||||
value.duration = hapDuration;
|
||||
// calculate absolute time
|
||||
let t = ac.currentTime + deadline;
|
||||
// destructure
|
||||
let {
|
||||
s = 'triangle',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue