Closed samreid closed 4 years ago
From slack, @jbphet said:
If you're inclined to create a common component like "ContinuousPropertySoundGenerator" or something along those lines, that would be great. I've been creating similar things recently for discrete sound generators. If you're on a tight deadline or otherwise disinclined, it'd be okay with me if you copied the one from GFLB and logged an issue about making it a common code component. And assigned the issue to me.
I demoed this patch connecting ContinuousSoundPropertyGenerator today, it was unclear whether we will use this pattern moving forward. It seems we want to try tying the Property to a filter frequency rather than the pitch, and try amplitude changes for the waves. Anyways here is the patch in case it is helpful:
From last week's meeting:
@Ashton-Morris said:
What if the sound fades in and out like “woop woop woop” instead of having a continuous “woooooooooooooooooo” like we have now? It would still be frequency matched. We could try turning on sound for just the top half of the wave, with the volume matched.
@emily-phet replied
That sounds worth a try
Here's a patch that implements the behavior described above:
Patch from today's discussion:
Summary from discussion. We want to sonify the entire waveform, not just the top half. It should sound like wooo waaa wooo waaa so it still has the right frequency. It should have blank space near the 0-crossings so it is a bit thinner. Try it with more pan-flute like sounds.
I moved the proposed changes to a branch
At today's wave interference sonification design meeting, we looked at the SineWave sound effect with a single pitch at the high and another single pitch at the low of the wave. We further refined it by using a triangle wave and using frequencies like setFrequencies(110,150)
. We also inversed the sin so it would be linear like @Ashton-Morris's demo last week. @kathy-phet said she was looking for more of a harpsichord sound, but we weren't sure how to accomplish that.
It seems we reviewed this sound and did not recommend any changes as part of https://github.com/phetsims/wave-interference/issues/465#issuecomment-583744423. Closing for now, but will reopen if we hear trouble in the Feb 20 meeting.
From meeting notes last week:
KP said it would be good to try out a sound for the meter Let’s try a mapping where the volume of a tone is controlled by the overall amplitude of the wave so that there is no sound when there is no wave, and then have the pitch modulated by the instantaneous value of the wave at the dot on the graph in the meter. SR: Do we just choose a fixed frequency for the dark gray probe and a different frequency for the light gray probe? There should be two different central pitches to support the two probes Who is on the hook to implement? JB: Ashton will provide sounds, Sam will integrate with support from John (Sam - the ForceSoundGenerator in GFLB is likely a good starting point)