-
... Color.grey(o.age/50, 1); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; } )
-
... ey(1, 0.4); sys.do{|o, i| Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; }) //--livecoding w= RedUniverse.worlds[0] w.gravity= RedVector2D[-0.3, 0.04]; w.damping= 0.999 ...
-
... gAtPoint("z:"+xyz[2], Point(5, 45)); }; }; win.onClose= {img.free; board.stop}; CmdPeriod.doOnce({win.close}); Routine({ var nextTime; while({win.isClosed.not}, { nextTime= Main.elapsedTime+(1/60); data= buffer.readAccel; if(data.isEmpty.no ...
-
... p(0, 5, 200, 2000), \freq2, (5-o.mass).linexp(0, 5, 200, 2000) ); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; } )
-
... = "Spectral Equalizer"; var point; var stereoChList, monoChList; var onOffButt, cmdPeriodFunc; var bufA, bufB; var spectralsl; size = 1024; spectralsl = Array.fill(size, 0.0); s = server ? Server.local; bufA = Buffer.alloc(s, size, 1); bufB ...
-
... ]; port= SerialPort(argPort ? "/dev/tty.BlueVAS_H-Data", 230400, crtscts:true); CmdPeriod.doOnce({port.close}); //--default actions action= argAction; ovAction= {|val| "number of missing samples: %".format(val).postln}; blAction= {|val| "ba ...
-
... dVector2D(o.loc, o.age)); Pen.fill; }; dead.do{|o| world.remove(o)}; }; w.play; CmdPeriod.doOnce({w.close}); ) //keep reduniverse window open and run the code below line by line s.boot ( ~createObj= {|x= 0.5, y= 0.5, vx= 0, vy= 0, size= 10, ...
-
... bus.index + counter] )) ; counter = counter + 1; trigSynths.add(trigSynth); // CmdPeriod.remove(trigSynth); }); times_durs.add(IdentityDictionary.new); timeQueues.add(PriorityQueue.new); times_theseHSindices.add(IdentityDictionary.new); }) ...
-
... 0]) .elasticMode_(1); }.dup(board.numChannels); win.layout= VLayout(*msliders); CmdPeriod.doOnce({win.close}); board.dataAction= {|num, data, acc| channels.do{|c, i| c.data= board.buffer[i]; if(notchFilters.notNil, { c.data= notchFilters[i] ...
-
... RedObject2D(o)); }, { Pen.fillRect(Rect.aboutRedObject2D(o)); }); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; })