Skip to content

Commit

Permalink
Implement setter for server volume
Browse files Browse the repository at this point in the history
  • Loading branch information
dathinaios committed Feb 4, 2023
1 parent a7824c9 commit 7fe4186
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions GUI/CuePlayerGUI.sc
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ CuePlayerGUI {
windowHeight = windowHeight + serverWindow.windowHeight;
}

setServerVolume { arg val;
serverWindow.volume_(val);
}

/* Handle Events from Dependants */

update { arg theChanged, message;
Expand Down
6 changes: 5 additions & 1 deletion GUI/ServerWindowCP.sc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ServerWindowCP : AbstractGUIComponentCP {

var serverInfoRoutine;
var <muteButton, volSlider, peakCPULabel, numSynthsLabel;
var <muteButton, <volSlider, peakCPULabel, numSynthsLabel;

createComponent {
this.createServerControls;
Expand Down Expand Up @@ -66,4 +66,8 @@ ServerWindowCP : AbstractGUIComponentCP {
^80
}

volume_ { arg volume;
volSlider.valueAction_(volume)
}

}

0 comments on commit 7fe4186

Please sign in to comment.