-
... ject { asTLItem { ^this.value } } + SequenceableCollection { asTLItem { if(this.size <= 3 and: { this.detect({ |item| item.isNumber.not }).isNil }) { ^this.asQuant.asTLItem } { ^this } } } + Quant { asTLItem { ^this.nextTimeOnGrid(thisThrea ...
-
... arentView( parent, bounds ? (350@100) ); view.addFlowLayout( 0@0, gap ); view.resize_(5); if( label.notNil ) { if( hasParent ) { labelView = StaticText( view, bounds.width @ labelHeight ) .string_( label ); bounds.height = bounds.height - ( ...
-
... t,\rootsOfUnitySum, \amp,amps, \dur,durs, \freq,freq, \n,Pseq([n],~nums.size), \ks , Pseq(all{:~divisors.value(n),n<-~nums},1)).trace(); r }; ~seq = (1..13); ~tau = all{:~divisors.value(n).size,n<-~seq}; ~r = Pseq(all{ ...
-
... rgs = [msg, time, replyAddr, recvPort]; if(~saveKeys.includes(msg[0])) { if(msg.size == 2) { ~data[msg[0]] = msg[1] } { ~data[msg[0]] = msg[1..]; }; }; NotificationCenter.notify(currentEnvironment, \any, args); if(guiOnly.not) { Notificatio ...
-
... } *indexArr {var result; if(planeIDs.notNil, { result = ([Array.series(planeIDs.size)] ++ [planeIDs]).flop; }); ^result; } *info { this.indexArr.postin(\ide, \doln); } *getPlanes {arg type=\aplane; var arr, select; select = this.planeIDs.fl ...
-
... ear; drawRoutine.reset.play(AppClock); } addToDrawFunc { arg func; if( drawList.size == 0, { drawRoutine.reset.play(AppClock); }); drawList.add(func); } removeFromDrawFunc { arg func; drawList.remove(func); if (drawList.size == 0){ drawRout ...
-
... ; if(args.notNil) { value = this.value(*args)} { value = this.value }; if(value.size == 0, { numChannels = 1 }, { numChannels = value.size }); buffer = Buffer.new(server, duration * server.sampleRate, numChannels, bufnum); // no need to che ...
-
... var number, divisor; //the list of prime numbers l=Array.newClear(indexedSize: 0); for (2, ~max,{arg number; x=Synth(\gsaw, [\g, number]); //play the number divisor=2; p=true; //prime number? while ({((divisor <= (nu ...
-
... wNumLines { ^1 } } + ControlSpec { makeView { |parent, bounds, label, action, resize| var view, vws, stp, labelWidth; vws = (); if( (minval != -inf) && { maxval != inf } ) { vws[ \valueView ] = EZSmoothSlider( parent, bounds, label !? { lab ...
-
... / 1. rund this ( // 2. and then run this t = Task({ ({ var num= b.size.rand; var buf= b[num]; 0.1*Splay.ar(PlayBuf.ar(buf.numChannels, buf, 1, 1, 0, 0)); }.play; ) }); ) ( // 3. Then run this z = T ...