-
... do({ var bank = AlgaNode(\sines); reverb <<+ bank; }); //Print CPU usage fork { loop { ("CPU: " ++ s.avgCPU.asStringPrec(4) ++ " %").postln; 1.wait; } } } ) //Boot Alga with the supernova server //Alga will automatically spread the load acr ...
-
... yStr = presetKey.asString; fItem = view.itemAt(fIndex); // super-oldskool while loop // because there's no 'numChildren' method for TreeViewItem pIndex = 0; while { fItem.childAt(pIndex).notNil and: { fItem.childAt(pIndex).strings[0] != pKe ...
-
... so you aren't updating on every iteration of the routine, but at the end of the loop. // choose a gui (see GUI helpfile) GUI .swing; GUI .cocoa; ParaSpace .new // use ctrl+click to create a Box ( w = Window .new( "ParaSpace" , Rect (10, 500 ...
-
... any expressive power to the concept, it is an interesting special case. At the loop point (a certain limit string size), a new axiom is chosen from the beginning (r > 0), or backward, from the end of the tape (r < 0). If recycle is not 0 , ...
-
... 5).wait ; }) ; }).play( SystemClock ) ; ) ////////////////////////// // Another looping cloud ( g = Graph .new ; r = Runner .new(g, weight:0.2).gui ; p = Painter .new(g, r) ; h = SlicePlayer (r).initAudio( "sounds/a11wlk01.wav" ) ; 20.do({ ...
-
... ype some text ( var time = Main.elapsedTime; a = List.new; r = Routine { |char| loop { a = a.add([char, Main.elapsedTime - time]); char = 0.yield; } }; Document.new("type some text") .keyDownAction = { |doc, key| r.value(key) ; time = Main. ...
-
... source.dims}); // maybe more efficient: copyRange is a primitive, select uses a loop .copyRange( 0, pointsource.dims ); // Scale signal by the encoding matrix and return the encoded B format signal // #w, x, y, z = (sig * encodeArray); // ^ ...
-
... + 1.5pi) * much + 1 }; var scale; var font = Font("Helvetica", 40).boldVariant; loop { i = i + 1; Pen.font = font; string.do { |char, j| scale = func.value(i, j).dup(6); Pen.fillColor = Color.new255(0, 120, 120).vary; Pen.matrix = scale * # ...
-
... nnels, bufnum: ~that_buffer, rate: BufRateScale.kr(~that_buffer) * rate.lag(1), loop: 1 ); }) ) // ================== // Amplitude Analysis // ================== // we will use amplitude analysis as a simple example to explain everything // ...
-
... nv('PATH', [PATH ':/usr/local/bin']); \n"); file.write("\n\n"); file.write("\t% looping up to the order set above \n"); file.write("\t for order = 1:h_order \n"); file.write("\n \t % set the channel definition first\n"); file.write("\t\t C ...