Working version of supersaw, almost on wavetable

This commit is contained in:
Aria 2025-12-04 12:40:28 -06:00
parent 600ab0a83e
commit 6610713018
4 changed files with 22 additions and 5 deletions

View file

@ -244,8 +244,9 @@ export async function onTriggerSynth(t, value, onended, tables, cps, frameLen) {
}
});
source.port.postMessage({ type: 'initialize', payload });
source.port.onMessage = (e) => {
source.port.onmessage = (e) => {
if (e.data.type === 'died') markWorkletAsDead(source);
source.port.onmessage = null;
};
if (ac.currentTime > t) {
logger(`[wavetable] still loading sound "${s}:${n}"`, 'highlight');