scel: fix serverRunning, avgCPU, peakCPU etc. (#2036)

bug with scide_scel
This commit is contained in:
Chris Sattinger 2016-05-07 17:12:04 +02:00
commit 820c3b3cd4

View file

@ -22,7 +22,7 @@
this.quit; this.quit;
}); });
}; };
booter.value=serverRunning.binaryValue; booter.value=this.serverRunning.binaryValue;
killer = EmacsButton(w, ["K"], { Server.killAll }); killer = EmacsButton(w, ["K"], { Server.killAll });
killer.enabled = false; killer.enabled = false;
@ -30,7 +30,7 @@
active = EmacsText(w, this.name.asString, 12, \center); active = EmacsText(w, this.name.asString, 12, \center);
// active.background = Color.black; // active.background = Color.black;
if(serverRunning,running,stopped); if(this.serverRunning,running,stopped);
makeDefault = EmacsButton(w, ["-> default"], { makeDefault = EmacsButton(w, ["-> default"], {
thisProcess.interpreter.s = this; thisProcess.interpreter.s = this;
@ -53,7 +53,7 @@
SystemClock.sched(0.2, { this.stopAliveThread }); SystemClock.sched(0.2, { this.stopAliveThread });
}; };
w.defineKey("n", { this.queryAllNodes }) w.defineKey("n", { this.queryAllNodes })
.defineKey(" ", { if(serverRunning.not) { this.boot } }) .defineKey(" ", { if(this.serverRunning.not) { this.boot } })
.defineKey("d", { .defineKey("d", {
startDump = { startDump = {
this.dumpOSC(1); this.dumpOSC(1);
@ -111,7 +111,7 @@
ctlr.remove; ctlr.remove;
}; };
}); });
if(serverRunning,running,stopped); if(this.serverRunning,running,stopped);
w.newline; w.newline;
@ -134,14 +134,14 @@
}); });
ctlr = SimpleController(this) ctlr = SimpleController(this)
.put(\serverRunning, { if(serverRunning,running,stopped) }) .put(\serverRunning, { if(this.serverRunning,running,stopped) })
.put(\counts,{ .put(\counts,{
countsViews.at(0).string = avgCPU.round(0.1); countsViews.at(0).string = this.avgCPU.round(0.1);
countsViews.at(1).string = peakCPU.round(0.1); countsViews.at(1).string = this.peakCPU.round(0.1);
countsViews.at(2).string = numUGens; countsViews.at(2).string = this.numUGens;
countsViews.at(3).string = numSynths; countsViews.at(3).string = this.numSynths;
countsViews.at(4).string = numGroups; countsViews.at(4).string = this.numGroups;
countsViews.at(5).string = numSynthDefs; countsViews.at(5).string = this.numSynthDefs;
}) })
.put(\cmdPeriod,{ .put(\cmdPeriod,{
recorder.value=0; recorder.value=0;