Skip to content
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

Volume inconsistencies during use #159

Closed
emily-phet opened this issue Dec 19, 2018 · 21 comments
Closed

Volume inconsistencies during use #159

emily-phet opened this issue Dec 19, 2018 · 21 comments

Comments

@emily-phet
Copy link

Issue 1: Many (all?) sounds seem to 'adjust' themselves after load/re-load. Will play at one volume initially and slightly softer after that. Doesn't happen after reset.

Reproduce 1: On sim load, with mouse, repeatedly pick up zoomed-in chemistry book. First pick up sound is louder than those that follow. (Safari, on my Mac)

Issue 2: After all 'losable' particles have flown off and you're rubbing the final layer on the book, volume seems to get louder (a little too loud).

If it seems like a more difficult fix, might be best to go ahead and let QA start testing so they can be putting together the full list of challenges. Let me know what you think.

@zepumph
Copy link
Member

zepumph commented Dec 19, 2018

Adding label because of email @emily-phet sent to us saying " I believe the only thing remaining is whether or not John would like to try to address the sound levels issue I brought up before RC. "

@jbphet please remove the label if you would like RC to go out before this issue is completed.

@jbphet
Copy link
Contributor

jbphet commented Dec 19, 2018

For reference, the version to which @emily-phet is referring is v1.5.0-dev.23.

@jbphet
Copy link
Contributor

jbphet commented Dec 19, 2018

I've done some investigating, here are my initial responses:

  1. The louder initial sound doesn't happen for me on my Win 10 machine running Chrome, but I can reproduce it on the PhET MacBook Pro "Erdos" running OS X 10.11 and Safari 9.0. I tried a couple of things using that machine, but it's not immediately obvious why this is happening. There is also a small, brief 'tick' or 'hiss' sound on loading in that configuration that should be addressed. It's not immediately obvious to me how to fix this, so it may take some time. I think it would be okay if @zepumph went forward with the RC and I fixed it while that was in progress.
  2. The volume of the molecule motion sound is controlled by the equation specified in the design document. I think what's going on here is that the user can't really get the detachable molecules to full vibration before they break off, so the max volume is only heard after the detachable molecules are all gone and the books are being rubbed together. I experimented with turning down the overall volume of the sound, and that wasn't bad, but it seemed a bit nicer to me to lower the overall volume and then have the molecule motion sound reach its max volume at about 3/4 the max vibration speed and have it get no louder thereafter. @emily-phet - I'm happy to try either of these before the RC is created, please let me know if one of the alternatives I've laid out sounds more appealing.

@jbphet jbphet assigned emily-phet and unassigned jbphet Dec 19, 2018
@jbphet
Copy link
Contributor

jbphet commented Dec 20, 2018

@emily-phet - can you log the version of Mac OS and Safari on which you experienced these issues?

@emily-phet
Copy link
Author

Mac: 10.13.6 (I haven't updated to mohave yet)
Safari: Version 12.0 (13606.2.11)

@jbphet
Copy link
Contributor

jbphet commented Jan 2, 2019

In one of the commits listed above I changed the mapping used for the volume of the molecule motion from an exponential to a sigmoid function. For reference, here is what that mapping function looks like in the Desmos online graphing calculator:

image

@emily-phet
Copy link
Author

Nice! I bet that will help a lot.

@jbphet
Copy link
Contributor

jbphet commented Jan 16, 2019

I've added a number of changes that should address these problems, most of which are related to the initial muting of sounds by the browser. I'm not quite finished just yet though, because it seems like some of these changes have had a detrimental effect on the book rubbing sound, so I'll need to address that before submitting this for testing.

jbphet added a commit to phetsims/tambo that referenced this issue Jan 21, 2019
jbphet added a commit that referenced this issue Jan 21, 2019
@jbphet
Copy link
Contributor

jbphet commented Jan 21, 2019

Okay, the observations about how this sim behaved on Safari led to a lot of changes due to differences in the way that Chrome, Safari, Edge, and Firefox all handle initial enabling of the sound. I built a dev version with all the changes - @emily-phet, please try this out and see if it fixes the problems that you noted above and let me know. If it's all good, @zepumph and I will integrate these changes into the current RC. Link: https://phet-dev.colorado.edu/html/friction/1.6.0-dev.1/phet/friction_en_phet.html.

@jbphet jbphet assigned emily-phet and unassigned jbphet Jan 21, 2019
@zepumph
Copy link
Member

zepumph commented Jan 24, 2019

@jbphet I am happy to cherry-pick when I do the rest of the issues if you would like. Just let me know what shas should be added.

jbphet added a commit to phetsims/tambo that referenced this issue Jan 24, 2019
jbphet added a commit to phetsims/tambo that referenced this issue Jan 24, 2019
jbphet added a commit that referenced this issue Jan 24, 2019
jbphet added a commit that referenced this issue Jan 24, 2019
jbphet added a commit that referenced this issue Jan 24, 2019
jbphet added a commit that referenced this issue Jan 24, 2019
… initial drag of the books, see #159

(cherry picked from commit 8608b98)
jbphet added a commit that referenced this issue Jan 24, 2019
@jbphet
Copy link
Contributor

jbphet commented Jan 25, 2019

The changes have been rolled into the Friction release branch and should be ready to be included in the next RC. Over to you @zepumph.

@jbphet jbphet assigned zepumph and unassigned jbphet Jan 25, 2019
@zepumph zepumph removed their assignment Jan 26, 2019
@zepumph
Copy link
Member

zepumph commented Jan 26, 2019

@jbphet is there anything for QA to test here? If so please explain, otherwise assign to yourself (if you want to verify in the rc) or close (or surprise us with a new option).

@zepumph
Copy link
Member

zepumph commented Jan 29, 2019

@jbphet I left this issue out of the issues to check on for the RC.2 QA issue. If this should be checked on, please add it to the list of issues to verify in phetsims/qa#276. Otherwise close.

@jbphet
Copy link
Contributor

jbphet commented Jan 30, 2019

Yes, I do think this should be tested, so I've added it to the list for the RC test.

@jbphet jbphet removed their assignment Jan 30, 2019
@KatieWoe
Copy link
Contributor

1.5.0-rc.2 I don't hear this issue so I think it can be considered fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants