Working on the '0' problem. Here is a possible start for a solution (I
also moved the var declaration for volumeNum to the head of the
makeWindow method):
{char === $0 and: {volumeNum.hasFocus.not}} {
this.volume = 0.0;
};
So, if the number box is focused, 0 is ignored. However, this means
that, if the number box is focused, just pressing 0 does nothing (you
have to hit enter). The other key presses work fine (mute, etc.), just
0 doesn't work. One thing I could do is set volumeNum.focus(false) if
it's value is 0, but this doesn't seem like good behavior either
(since you may want to use arrow keys still to set a new number
value). Any suggestions?
josh
On Jan 28, 2008, at 9:01 AM, James Harkins wrote:
Actually there is already a bug with this. You can't type -10 into
the
volume box because the "0" resets to unity gain and throws away
whatever else you typed.
hjh
wrote:
just a quick note about the slider and mute button.
If the Server window is focussed, 'm' will mute and unmute. 0 will
move the slider back to 0db.
If the Volume of a Server is 0, then the synth that is controlling
volume is freed (so if you are playing with the slider and noticed a
synth coming and going, this is why).