testing
This commit is contained in:
parent
c00ed14bc3
commit
f5c7b58b3a
1 changed files with 10 additions and 1 deletions
|
|
@ -41,10 +41,19 @@ export function registerSynthSounds() {
|
|||
freq = Number(freq);
|
||||
|
||||
const node = getWorklet(ac, 'better-oscillator', { frequency: freq });
|
||||
const o = ac.createOscillator();
|
||||
o.start(t);
|
||||
o.onended = () => {
|
||||
console.log('here');
|
||||
o.disconnect();
|
||||
node.disconnect();
|
||||
};
|
||||
|
||||
return {
|
||||
node,
|
||||
stop: (time) => {},
|
||||
stop: (time) => {
|
||||
o.stop(time);
|
||||
},
|
||||
triggerRelease: (time) => {
|
||||
// envGain?.stop(time);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue