-
... ]; RedAgent(world, loc).state_(0.25.coin.binaryValue); //world,loc,vel,acc,mass,size }.dup(n); }.dup(n); //--loop w.draw{ var counts= world.objects.collect{|o| world.neighbours(o).sum{|oo| oo.state} }; world.objects.do{|o, i| if(o.state==1, ...
-
... sing the spectrogram: s.boot; Creation / Class Methods *new (parent, bounds, bufSize, color, background, lowfreq, highfreq) Initialising the view, either in a Window or not. parent - a Window (optional). bounds - a Rect where the spectrogra ...
-
... Rec; // recorded list[2] with 145 events. ~loop.list; // a long list ~loop.list.size; // and its size // should replay the movements that were recorded: ~loop.play; // make the loop repeat by code: ~loop.looped = true; ( // now, why not con ...
-
... , so this calculates J[2](5) @*/ var current, prev, prev2, flag, j; (n < jn_arr.size).if({ ^jn_arr[n]; }); current = jn_arr.size; prev = current - 1; prev2 = current -2; flag = false; {flag.not}.while ({ j = (((2 * prev) / x) * jn_arr[prev] ...
-
... .y)); } getUnits { var units; if( this.packUnits ) { units = Array( chain.units.size ); chain.units.do({ |item, i| case { i == 0 or: { item.isKindOf( MassEditU ) or: { item.def.isKindOf( LocalUdef ) } } } { units.add( item ); } { item.subDe ...
-
... ++ dash ++ "Record" ++ dash; if(recStates.isNil, { recStates = 0!(mixTrackNames.size-1) ++ [1] }); recStates.do({|item, index| if(item == 1, { recTracks = recTracks.add(("space" ++ mixTrackNames[index].asString.capitalise).asSymbol); }); }) ...
-
... t(world, loc, vel, acc, speeds[i]*5000, 50); }.dup(n); //world,loc,vel,acc,mass,size planes= {|i| Red3DPlane(RedVector3D[0, i+1/n-0.5, 0])}.dup(n); //--loop w.draw{ Pen.strokeColor= Color.grey(1, 0.5); Pen.translate(0, -50); world.objects.d ...
-
... t(world, loc, vel, acc, speeds[i]*5000, 50); }.dup(n); //world,loc,vel,acc,mass,size planes= {|i| Red3DPlane(RedVector3D[0, i+1/n-0.5, 0])}.dup(n); //--loop w.draw{ Pen.strokeColor= Color.grey(1, 0.5); Pen.translate(0, -50); world.objects.d ...
-
... to operate on. // this is a macro Instr("#instr", { arg instr ... args; if(args.size == 0,{ [\asInstr, `instr] },{ if(args.size == 1 and: { args.first.isKindOf(Dictionary) },{ args = args.first }); [\papply, [\asInstr, `instr], `args] }) }) ...
-
... prSetStatus(\isPlaying) }) } resetProtoStream { postStream = nil; if(postFilter.size > 0, { postStream = Pbind(*postFilter.getPairs).asStream }); protoEvent['group'] = this.group; protoEvent['bus'] = this.bus; } stopToBundle { arg b; b.addF ...