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

UI sound for WaterFaucetNode #90

Closed
pixelzoom opened this issue Feb 29, 2024 · 8 comments
Closed

UI sound for WaterFaucetNode #90

pixelzoom opened this issue Feb 29, 2024 · 8 comments

Comments

@pixelzoom
Copy link
Contributor

pixelzoom commented Feb 29, 2024

Discussed at today's design meeting...

Version 1.0 of FEL will have UI sounds, and FaucetNode is currently the only element that does not have UI sound. Since sound design and implementation for FaucetNode is unlikely to be completed before this sim is published, I'll investigate adding some temporary UI sound in WaterFaucetNode.ts, the subclass of FaucetNode used in FEL. The consensus was that the default Slider sound would be fine.

@pixelzoom
Copy link
Contributor Author

pixelzoom commented Mar 5, 2024

I've added temporary sounds to WaterFaucetNode, code that is specific to this sim. I used the same sounds that are used by Slider --- blips when the value changes, bloops when we reach the min and max :)

No changes were made to FaucetNode. There is a TODO in WaterFaucetNode that refers to phetsims/scenery-phet#840 (Sound for FaucetNode). If some tries to close that issue after adding sound to FaucetNode in common code, they will be notified that they need to remove the temporary sound is WaterFaucetNode.

@arouinfar please review, close if OK.

@pixelzoom pixelzoom assigned arouinfar and unassigned pixelzoom Mar 5, 2024
pixelzoom added a commit that referenced this issue Mar 6, 2024
pixelzoom added a commit that referenced this issue Mar 6, 2024
pixelzoom added a commit that referenced this issue Mar 6, 2024
@arouinfar
Copy link
Contributor

Thanks @pixelzoom. I confirmed the FacetNode sounds like a slider on main. There are quite a lot of blips sounding as I interact with the FaucetNode. It seems like the sound is triggering every 1%, which makes sense since the mouse/touch interaction is continuous, but it doesn't sound very good. Is it possible to increase the interval at which the blip is triggered?

I have the same issue with the sound being generated by the other sliders in the sim, but I think the changes in #96 will likely resolve that.

@arouinfar arouinfar assigned pixelzoom and unassigned arouinfar Mar 6, 2024
@pixelzoom
Copy link
Contributor Author

Yes, is it possible to increase the interval at which the sound is triggered. The interval is currently 2%. What would you prefer?

@arouinfar
Copy link
Contributor

Let's try 5% @pixelzoom.

@arouinfar arouinfar removed their assignment Mar 6, 2024
pixelzoom added a commit that referenced this issue Mar 6, 2024
@pixelzoom
Copy link
Contributor Author

Sound now plays when flowRateProperty (range 0-100%) changes by 5%.

@arouinfar please review, close if OK.

@pixelzoom pixelzoom assigned arouinfar and unassigned pixelzoom Mar 6, 2024
@arouinfar
Copy link
Contributor

Thanks @pixelzoom. I think the FaucetNode sound is still playing too often. I know it's the same interval as the other sliders in the sim, but it doesn't feel the same because FaucetNode has a much shorter track than a typical slider. Can you please increase the interval to 10%?

@arouinfar arouinfar assigned pixelzoom and unassigned arouinfar Mar 6, 2024
pixelzoom added a commit that referenced this issue Mar 7, 2024
@pixelzoom
Copy link
Contributor Author

Changed to 10%, back to @arouinfar for review, close if OK.

@pixelzoom pixelzoom assigned arouinfar and unassigned pixelzoom Mar 7, 2024
@arouinfar
Copy link
Contributor

Thanks @pixelzoom, 10% sounds good to me. Closing.

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

No branches or pull requests

2 participants