Double-click sliders in play panel or synthesizer sets them to zero

• Apr 29, 2016 - 18:02
Reported version
2.1
Type
Functional
Severity
S4 - Minor
Status
closed
Project
Tags

2.0.3 on Win 7/10

Double clicking anywhere along the sliders in the play panel (F11) or synthesizer sets the value to zero.


Comments

The control we use for the synth, mixer etc.. has 2 two values that can be set for double click with left and right buttons. These two values are 0 by default. We could set them to something more meaningful for each instance of the control.

Note that the Tempo slider in Play Panel (F11) is correctly set to a reasonable default for it
(%100) when double clicking on it. But all the other sliders need to be fixed to set to a reasonable default. These sliders that need to be fixed are:

Play Panel's Volume Slider. (default value on start is a little under 50% full)
Synthesizer's Metronome Volume Slider. (default value on start is about 60% full)
Synthesizer's Main Volume Slider. (default value on start is the 30 notch)

So probably when Animesh (new contributor) tries to fix it, might look at how Play Panel's Tempo slider is correctly set to a reasonable default as an example.

FYI, I've tested out Animesh's fix, and it fixes the problem. My only (minor) quibble is that double clicking doesn't reset the value to *exactly* the same value as when musescore boots. Ideally I would have liked to have the first time the slider is initialized to be the action which sets the default value for double click. I mentioned this in irc to Animesh, but I said we'll wait and see what lasonic thinks.