This commit is contained in:
Jade (Rose) Rowland 2024-03-03 13:16:32 -05:00
parent 7f60a9e52b
commit 78a6ec2f98
3 changed files with 45 additions and 14 deletions

View file

@ -52,7 +52,20 @@ export function registerSynthSounds() {
const holdend = begin + duration;
const end = holdend + release + 0.01;
let node = getWorklet(ac, 'better-oscillator', { frequency: freq, wave: i, begin, end });
let node = getWorklet(
ac,
'better-oscillator',
{
frequency: freq,
wave: i,
begin,
end,
},
{
outputChannelCount: [2],
// numberOfOutputs: 1,
},
);
const envGain = gainNode(1);
node = node.connect(envGain);
@ -69,7 +82,7 @@ export function registerSynthSounds() {
},
};
},
{ type: 'synth', prebake: true },
// { prebake: true },
);
});