2 scope { arg name = "UGen Scope", bufsize = 4096, zoom = 1.0;
5 server = gui.stethoscope.defaultServer;
6 ^SynthDef.wrap({ var bus, numChannels, rate, scope;
7 numChannels = this.numChannels;
9 bus = Bus.perform(rate, server, numChannels);
11 \audio, {Out.ar(bus.index, this)},
12 \control, {Out.kr(bus.index, this)}
16 scope = gui.stethoscope.new( server, numChannels, bus.index, bufsize, zoom, rate );
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 = 1.0;
33 server = gui.stethoscope.defaultServer;
34 ^SynthDef.wrap({ var bus, numChannels, rate, scope;
35 numChannels = this.numChannels;
37 bus = Bus.perform(rate, server, numChannels);
39 \audio, {Out.ar(bus.index, this)},
40 \control, {Out.kr(bus.index, this)}
44 scope = gui.stethoscope.new( server, numChannels, bus.index, bufsize, zoom, rate );
45 scope.window.name_(name.asString).bounds_( gui.stethoscope.tileBounds);
46 gui.stethoscope.ugenScopes.add(scope);
47 scope.window.onClose = { scope.free; bus.free;
48 gui.stethoscope.ugenScopes.remove(scope) };
49 CmdPeriod.doOnce({ {scope.window.close}.defer });