Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (3519) Code (203) Doc (848) Help (193) Quark (2225) Plugin (50) SCDoc ↗ Forum ↗ Google ↗
  1. tl-extensions Quark

    ... 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 ...

  2. FuncView Quark

    ... 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 - ( ...

  3. Experiment with roots of unity by muse-score (Muse Score) Code

    ... 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{ ...

  4. mobile-objects Quark

    ... 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 ...

  5. Plane Quark

    ... } *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 ...

  6. CueTriggerCP Quark

    ... 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 ...

  7. extSynthdef-record Quark

    ... ; 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 ...

  8. The quest for the prime numbers by henklass (henklass) Code

    ... 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 ...

  9. plusSpec-makeView Quark

    ... 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 ...

  10. Play soundfiles by vandretgaaendeelevator (Bjørn Houdorf) Code

    ... / 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 ...

prev 161 162 163 164 165 166 167 168 169 170 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow