Working version of supersaw, almost on wavetable
This commit is contained in:
parent
600ab0a83e
commit
6610713018
4 changed files with 22 additions and 5 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue