2 scope { arg name = "UGen Scope", bufsize = 4096, zoom;
5 ^SynthDef.wrap({ var bus, numChannels, rate, scope;
6 numChannels = this.numChannels;
8 bus = Bus.perform(rate, Server.internal, numChannels);
10 \audio, {Out.ar(bus.index, this)},
11 \control, {Out.kr(bus.index, this)}
15 scope = gui.stethoscope.new( gui.stethoscope.defaultServer, numChannels, bus.index, bufsize, zoom,
17 scope.window.name_(name.asString).bounds_( gui.stethoscope.tileBounds);
18 gui.stethoscope.ugenScopes.add(scope);
19 scope.window.onClose = { scope.free; bus.free;
20 gui.stethoscope.ugenScopes.remove(scope)};
21 CmdPeriod.doOnce({ {scope.window.close}.defer });
30 scope { arg name = "UGen Scope", bufsize = 4096, zoom;
33 ^SynthDef.wrap({ var bus, numChannels, rate, scope;
34 numChannels = this.numChannels;
36 bus = Bus.perform(rate, Server.internal, numChannels);
38 \audio, {Out.ar(bus.index, this)},
39 \control, {Out.kr(bus.index, this)}
43 scope = gui.stethoscope.new( gui.stethoscope.defaultServer, numChannels, bus.index, bufsize, zoom,
45 scope.window.name_(name.asString).bounds_( gui.stethoscope.tileBounds);
46 gui.stethoscope.ugenScopes.add(scope);
47 scope.window.onClose = { scope.free; bus.free; gui.stethoscope.ugenScopes.remove(scope)};
48 CmdPeriod.doOnce({ {scope.window.close}.defer });