-
Notifications
You must be signed in to change notification settings - Fork 1
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
Sounds missing when jumping to min/max for 'Number of...' controls #313
Comments
@jessegreenberg is handling this in phetsims/sun#886. Once that is complete we can assess what it is sounding like in the sim. |
This has now been addressed by work done in phetsims/sun#886. Back over to @Nancy-Salpepi (or since Nancy is on vacation, @KatieWoe ) to check it's working as expected on main. Feel free to close if it's sounding good! |
Mostly fixed on main. When using home/end on the predict mean pencil, the first time does not produce a sound, but subsequent uses does. |
Hmmm that is interesting. Investigating. |
@jbphet is going to go ahed and tackle this. |
I've added initialization of the |
I believe so. I'm going to mark this as ready for review so it can be confirmed in the upcoming RC. Thanks @jbphet! |
There is still something funky going on with the pencil in rc.1 |
I'm noticing the lower pencil sound only on the Level Out screen. It does not seem to be a lower level in the Distribute screen. |
Actually, I need to wait a while before moving the pencil on the Distribute Screen to hear the lower volume, but it is there. |
I don't feel confident making changes here without @jbphet. I've thrown around some ideas, but I think they are ultimately all just work arounds, that @jbphet will probably have a better solution for. Since I'm already needing to hold this RC to get his review on a couple of issues I don't feel waiting to resolve this issue is causing any further delay. |
Good catch in your comment above @Nancy-Salpepi. The code wasn't doing a great job of handling big, sudden, keyboard-induced changes to the mean prediction value. The biggest problem was that it was using the time difference between the previous update and the current one to calculate the rate change for the mean prediction value. If there was a sudden change after several seconds of inactivity, the time difference was relatively big, and thus the rate change was small, which led to a low value for the volume of the sound. To address this, I've added code that limits the max time difference value used in the rate-change calculation. @marlitas and I discussed this and reviewed the code over Zoom, so I'm going to mark it as ready to cherry pick. We should have this verified on the next RC. |
(cherry picked from commit 65b5efa)
All min/max jumps sound good in rc.2 |
Test device
MacBook Air M1 chip
Operating System
14.5
Browser
Safari 17.5
Problem description
For phetsims/qa#1105, On screens 1-3 sounds are missing when jumping to min/max values for the Number of Cups/People. On the Balance Point screen, jumping to max initiates the kicking animation so I hear that sound, but I don't hear anything when jumping to the min (0 balls).
I do hear sounds when jumping to min/max for the water level, choc bars, apples.
Linking to the general issue: phetsims/sun#886
Steps to reproduce
The text was updated successfully, but these errors were encountered: