{
   "code" : "SynthDef(\\scopeSynth, {\r\n\t| in=0 bufnum=0 |\r\n\tvar output;\r\n\toutput = In.ar(in, 2);\r\n\tScopeOut2.ar(output, bufnum, 1024, 64 );\r\n}).add;\r\n\r\n(\r\nvar win, view, synth, bufnum, scopeView, server=Server.default;\r\nwin = Window(\"scope\");\r\nbufnum = Buffer.alloc(s, 1024, 2);\r\nsynth = Synth(\\scopeSynth, [\\in, 0, \\bufnum, bufnum]);\r\nscopeView = ScopeView(win, win.view.bounds).resize_(5).style_(0).waveColors = [Color.green, Color.green];\r\nscopeView.server = server;\r\nscopeView.canFocus = true;\r\nscopeView.bufnum = bufnum;\r\nscopeView.start;\r\nwin.front;\r\n)\r\n\r\nSynth(\\default); // tada! this (and anything else you play after this point) is now being scoped by ScopeView.",
   "is_private" : null,
   "id" : "1-51N",
   "labels" : [
      "gui",
      "scope",
      "scopeview",
      "scopeout",
      "scopeout2"
   ],
   "ancestor_list" : [],
   "description" : "This is a basic example of how to use ScopeView in your GUIs without having to include all the extra bells and whistles that Stethoscope includes.",
   "name" : "Basic ScopeView example",
   "author" : "defaultxr"
}
