severak / cyber-music-studio

not your usual DAW
https://severak.github.io/cyber-music-studio/
MIT License
13 stars 1 forks source link

envelope broken in firefox 107 #13

Open severak opened 2 years ago

severak commented 2 years ago

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.

severak commented 2 years ago

In bugzilla - https://bugzilla.mozilla.org/show_bug.cgi?id=1803822

severak commented 2 years ago

Maybe this solves this - https://github.com/WebAudio/web-audio-api/issues/2437

severak commented 2 years ago

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

severak commented 2 years ago

I have testing tool.

It seems to be less buggy in testing tool.

severak commented 3 months ago

maybe solution - https://github.com/tidalcycles/strudel/pull/861

severak commented 3 months ago

also: console.log is async

a = "hello";
  console.log( a ); // prints goodbye
a = "goodbye";