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

@ -181,8 +181,9 @@ export function registerSynthSounds() {
}
});
o.port.postMessage({ type: 'initialize' });
o.port.onMessage = (e) => {
o.port.onmessage = (e) => {
if (e.data.type === 'died') markWorkletAsDead(o);
o.port.onmessage = null;
};
const gainAdjustment = 1 / Math.sqrt(voices);
getPitchEnvelope(o.parameters.get('detune'), value, begin, holdend);