Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (692) Code (80) Doc (247) Help (48) Quark (306) Plugin (11) SCDoc ↗ Forum ↗ Google ↗
  1. EQ Plugin

    BhobLoShelf { *ar {|in, freq, amp| var wc, a0, allpass; wc=pi * freq * SampleDur.ir; a0=(1 - wc)/(1 + wc); allpass=FOS.ar(in, a0.neg, 1, a0, -1); ^(0.5 * (in + allpass + (amp * (in-allpass)))) } } BhobHiShelf { *ar {|in, freq, amp| var wc, ...

  2. Spreader Plugin

    ... h' to the new image. 0 allows the original to pass through to both speakers, 0.5pi represents the widest difference, pi basically gives you an inverted signal between the two speakers. filtsPerOctave tells the UGen how to split the spectrum ...

  3. MCLDBufferUGens Plugin

    ... ^ #["UGens>Buffer"] } } BufMin : BufMax {} /* {ArrayMax.ar(SinOsc.ar(1000, [0, pi]))}.plot(1) {ArrayMax.kr(SinOsc.kr(1000, [0, pi]))}.plot(1) */ ArrayMax : MultiOutUGen { *ar { | array | ^this.multiNewList(['audio'] ++ array.asArray) } *kr ...

  4. trainFromFile Plugin

    ... e 2 D data with a sinusoidal relationship: s.boot; ~toydata = { var num; num = 2pi.rand; [num - pi / pi, num.sin]}.dup(10000); // Let's plot the data - looks just like noise? ~toydata.flatten.plot(numChannels: 2); // The following will plot ...

  5. joshfilts Plugin

    ZLPF { *ar { arg in, fc=440, damping=0.707, mul=1, add=0; var b0, b1, b2, a0, a1, a2; var c, cc, twodC; var out; out = in; damping.asArray.do({ arg df; c = (pi * fc/SampleRate.ir).tan.reciprocal; cc = c.squared; twodC = 2 * df * c; b0 = (1 ...

  6. AmbisonicsSC2 Plugin

    ... th it here // azim = pointsource.theta + ((pointsource.rho < 0).binaryValue.neg*pi); // azim = pointsource.theta + ((pointsource.rho < 0) * pi); azim = pointsource.theta + (BinaryOpUGen.new( '<', pointsource.rho, 0 )* pi); // Must add // bi ...

  7. ProbabilityDistributions Plugin

    ... andNum; randNum = 0.5; while({ randNum == 0.5; // to avoid discontinuity at tan(pi/2) },{ randNum = 1.0.rand; }); ^( (spread * tan(randNum * pi)) + this ) } /* Gaussian Distribution (aka Normal Distribution) Generates a bell-shaped curve ce ...

  8. SMS Plugin

    ... 000), 1.0); Out .ar(0, Pan2 .ar(output[0])); }.play ) //transient detection via Pitch hasFreq output //could have freq input and transient detection input to SMS to control rendering ( { var in, fft, sines, noise, freq, hasFreq; //in= Sound ...

  9. SOMTrain_3D_example Plugin

    ... anwidth); ~data = ~dataspacechanwidth.collect{ |index| ((0..~dataspacelength)*2*pi/~dataspacelength).sin * ((8 * index/~dataspacechanwidth).sin) } //~data.heatMap(title: "training data (array)"); // You need the "heatMap" quark to run this ...

  10. SOMTrain_2D_example Plugin

    ... anwidth); ~data = ~dataspacechanwidth.collect{ |index| ((0..~dataspacelength)*2*pi/~dataspacelength).sin * ((8 * index/~dataspacechanwidth).sin) } //~data.heatMap(title: "training data (array)"); // You need the "heatMap" quark to run this ...

1 2 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow