mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 21:58:31 +00:00
testing
This commit is contained in:
parent
c00ed14bc3
commit
f5c7b58b3a
@ -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…
x
Reference in New Issue
Block a user