Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (76) Code (2) Doc (24) Help (21) Quark (28) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. StatUGens Quark

    ... ubed, length ) / (length * stddev.cubed ); // get rid of NaN's in output good = BinaryOpUGen('==', CheckBadValues.kr(skew, 0, 0), 0); skew = Gate.kr( skew, good ); ^skew; } *categories { ^ #["UGens>Analysis>Statistics"] } } KurtosisUGen{ *k ...

  2. RedKCS Quark

    ... h)-0.5; snd= (ZeroCrossing.ar(snd)/baudRate).round(1); startTrig= SetResetFF.ar(BinaryOpUGen('==', snd, zeroCycles)); 10.do{|i| var d= 10-i/baudRate; arr[i]= DelayN.ar(snd, d, d); }; arr[10]= snd; arr= Latch.ar(arr, Phasor.ar(startTrig, bau ...

  3. TestSatieFactory_hoaEncoding Quark

    ... / When compiled into a SynthDef, this pseudo-UGen gets disolved into a bunch of BinaryOpUGens // all we can do is test that HOAEncoder is not used inside this SynthDef this.assertEquals(ugens.includes(\HOAEncoder3), false, "SatieFactory com ...

  4. UGenNode Quark

    ... UnaryOpUGenNode(aSelector, this) } composeBinaryOp { arg aSelector, something; ^BinaryOpUGenNode(aSelector, this, something) } reverseComposeBinaryOp { arg aSelector, something, adverb; ^BinaryOpUGenNode(aSelector, something, this) } compos ...

  5. SimplePlayerEffect Quark

    ... var in,pnc; var good; pnc = subject.numChannels; in = In.ar(i_bus,pnc); good = BinaryOpUGen('==', CheckBadValues.ar(in, 0, 0), 0); // silence the output if freq is bad in = in * good * EnvGen.kr(env,gate,doneAction:0); // phone home SendTr ...

  6. SimplePlayerEffect Quark

    ... ar in, pnc; var good; pnc = subject.numChannels; in = In.ar(i_bus, pnc); good = BinaryOpUGen('==', CheckBadValues.ar(in, 0, 0), 0); // silence the output if freq is bad in = in * good * EnvGen.kr(env, gate, doneAction:0); // phone home Send ...

  7. oscillOrcKr Quark

    // all mono // ? class Out has bad inputs: [ an OutputProxy, a BinaryOpUGen ]. Instr.orc(\oscillOrcKr,[ \sin,{arg lfo=500,phase=0,amp=1.0; SinOsc.kr(lfo,phase,amp); }, \syncsaw,{ arg lfo=400,freq=1300,amp=1.0; SyncSaw.kr(freq, lfo, amp); }, ...

  8. MxChannelFader Quark

    ... hold, c, k, in; in = In.ar(inBus, numChannels); if(breakOnBadValues > 0, { ok = BinaryOpUGen('==', CheckBadValues.kr(Mono(in), 0, 2), 0); (1.0 - ok).onTrig({ "bad value, muting".inform; onBad.value("bad value"); }); in = in * ok; }); if(bre ...

  9. FreqSpectrum Quark

    ... b) // } // // performBinaryOpOnUGen { arg aSelector, aUGen; // ^Complex.new( // BinaryOpUGen.new(aSelector, aUGen, this.real), // BinaryOpUGen.new(aSelector, aUGen, this.imag) // ); // } hash { ^magnitude.hash bitXor: phase.hash } printOn { ...

  10. startup21-clientfft Quark

    ... lysis until the whole frame is recorded var pc = PulseCount.kr(t_trig), start = BinaryOpUGen.new1(\control, '==', pc, 1), stop = BinaryOpUGen.new1(\control, '==', pc, 2), started = (pc > 0), sig = In.ar(outbus, 1), fft = FFT(fftbuf, sig), d ...

prev 1 2 3 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow