From 36dd2a1db3fb10ab6f9469b2c4a505076a5c43da Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Tue, 5 Mar 2024 17:39:01 -0700 Subject: [PATCH] increase ValueChangeSoundPlayer numberOfMiddleThresholds from 5 (default) to 50, https://github.com/phetsims/faradays-electromagnetic-lab/issues/90 --- js/generator/view/WaterFaucetNode.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/generator/view/WaterFaucetNode.ts b/js/generator/view/WaterFaucetNode.ts index a712b658..2575f242 100644 --- a/js/generator/view/WaterFaucetNode.ts +++ b/js/generator/view/WaterFaucetNode.ts @@ -40,7 +40,9 @@ export default class WaterFaucetNode extends FaucetNode { }, providedOptions ); // TEMPORARY SOUND: like Slider. - const soundGenerator = new ValueChangeSoundPlayer( waterFaucet.flowRateProperty.range ); + const soundGenerator = new ValueChangeSoundPlayer( waterFaucet.flowRateProperty.range, { + numberOfMiddleThresholds: 50 + } ); // TEMPORARY SOUND: drag function shared by mouse/touch drag and keyboard drag. let previousValue = waterFaucet.flowRateProperty.value;