{
   "ancestor_list" : [],
   "description" : "listen and see cyclo.id.",
   "author" : "LFSaw",
   "name" : "cycloScope",
   "code" : "GUI.cocoa;\r\n\r\nq = ();\r\nServer.default = s = Server.internal;\r\ns.waitForBoot{\r\n\tq.scopeBuffer = Buffer.alloc(s,1024, 2);\r\n}\r\n\r\n// adjust to where you have the files located\r\nq.files = \"/Users/tboverma/Music/iTunes/iTunes Music/cyclo. id/Ryoji Ikeda and Carsten Nicolai/*.aiff\".pathMatch;\r\n\r\n(\r\nq.win = Window.new.front;\r\nq.scope = ScopeView(q.win, q.win.view.bounds);\r\nq.scope.bufnum = q.scopeBuffer.bufnum;\r\nq.scope.resize = 5;\r\nq.scope.style_(2);\r\nq.scope.waveColors = [Color.green, Color.green];\r\n)\r\n\r\n\r\n(\r\nq.scopeSynth = SynthDef(\"monoscope\", { arg bufnum;\r\n\tvar z;\r\n\tz = In.ar(0 ,2);\r\n\t// ScopeOut writes the audio to the buffer\r\n\tScopeOut.ar(z, bufnum);\r\n}).play(\r\n\t1,\r\n\t[\\bufnum, q.scope.bufnum] ,\r\n\t\\addAfter // make sure it goes after what you are scoping\r\n);\r\n)\r\n\r\n// choose file to listen to\r\nq.playBuffer = Buffer.cueSoundFile(s, q.files[8], 0, 2);\r\nq.player = { DiskIn.ar(2, q.playBuffer.bufnum) }.play;",
   "is_private" : null,
   "id" : "1-4QK",
   "labels" : [
      "player"
   ]
}
