envelope broken in firefox 107
Opened this issue · 6 comments
What did you do? (steps to reproduce)
Open https://severak.github.io/cyber-music-studio/fm.html and play up and down with mouse.
What happened? (actual results)
In Firefox 107 it will crackle like a hell and in Chrome (and other Webkit based browsers) it sounds just OK
This was not an issue before. I used to develop this software on Firefox and while I was doing this (in 2021) it was sounding good.
Now it's crackling due some weird envelope behaviour. I can change code of my program. I can even do some special behaviour for Firefox here but I don't know how to do it.
In bugzilla - https://bugzilla.mozilla.org/show_bug.cgi?id=1803822
Maybe this solves this - WebAudio/web-audio-api#2437
But first try setTargetAtTime instead of setValueAtTime.
Also linearRampToValueAtTime is broken in Firefox as per https://developer.mozilla.org/en-US/docs/Web/API/AudioParam
I have testing tool.
It seems to be less buggy in testing tool.
maybe solution - tidalcycles/strudel#861
also: console.log is async
a = "hello";
console.log( a ); // prints goodbye
a = "goodbye";