-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get smooth, consistent output level changes to work #61
Comments
As an initial step, I think it would be worth the time to create a standalone HTML file that tests the behavior of these methods on any browser. |
I've created a standalone HTML file that allows the user to turn on and off a sound source and then modify the gain using various APIs. Testing with this definitely shows differences in the way the Web Audio API behaves in several use cases. I've contacted the W3C Audio group and asked them what they recommend for how to work with the various browser vendors to help the implementations to get more consistent. |
…t behavior of linear gain changes, see phetsims/tambo#61, #329, phetsims/friction#159, and phetsims/resistance-in-a-wire#205
…t behavior of linear gain changes, see phetsims/tambo#61, phetsims/john-travoltage#329, #159, and phetsims/resistance-in-a-wire#205
…t behavior of linear gain changes, see #61, phetsims/john-travoltage#329, phetsims/friction#159, and phetsims/resistance-in-a-wire#205
I think I have some changes in place that should address both the problems with smooth changes and the problem where, due to differences in the implementation of
|
Making a list here for checking the supported platforms:
|
These two issues are relevant to the above testing. |
@jbphet Here are some problems I've seen so far: |
QA is done. In addition to #61 (comment), I heard some instances of pops/crackles that were also sometimes present in the published version. This was not dependent on platform/browser. Finally, there were a few seemingly unrelated issues with keyboard nav in Friction that I discussed with @jessegreenberg |
I have an idea on how to test the behavior of the gain stages fairly rigorously. I could create a sound file that just has a constant (i.e. DC) output value of 1.0 and use it in an |
This issue has been idle for a long time, and there haven't been any complaints about the way the gain changes work in the tambo lib. I'm unlikely to be in a position where I will have additional time to spend on this, so I'll just close it, and will create new issues if and when problems are reported. |
Due to some issues with sounds being audible during startup and behaving differently on different platforms, I changed a number methods used to set gain changes to use
linearRampToValueAtTime
instead ofsetTargetAtTime
. The issues that were being addressed were phetsims/friction#159 and phetsims/resistance-in-a-wire#205 (among, I think, some others).Using the
linearRampToValueAtTime
method is turning out to cause some problems of its own, mostly in situations where a lot of changes are being made quickly, see phetsims/john-travoltage#329.We need the ability to set the output level for tambo sound generators such that the sounds:
The text was updated successfully, but these errors were encountered: