Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (2705) Code (126) Doc (797) Help (250) Quark (1510) Plugin (22) SCDoc ↗ Forum ↗ Google ↗
  1. NovaDiskIOUGens Plugin

    ... ckNumberAllocator(0, 1073741824) } *cueSoundfile {|filename, completionMessage, server| var cueID = readerIDAllocator.alloc; if (server.isNil) { server = Server.default }; server.sendMsg(\cmd, \NovaDiskIn, 0 /* open */, cueID, filename, com ...

  2. AtsFile Plugin

    AtsFile : File { var <path, server, le, <bufnum, filepath, numSamples; var <header, loaded, <data; // header data var magic, <sr, <frameSize, <winSize, <numPartials, <numFrames, <ampMax, <freqMax, <sndDur, <atsType; var offset, offset2, inc ...

  3. BBlockerProgram Plugin

    ... 256 - program.size)}, {0!(256 - program.size)})); } ^collection; } makeBuffer {|server, action| server = server ?? {Server.default}; ^Buffer.loadCollection(server, this.collection, 1, action) } asLocalBuf { ^LocalBuf.newFrom(this.collection ...

  4. SOMTrain Plugin

    ... (3, rate); } *categories { ^ #["UGens>Analysis"] } // Conveniences *allocBuf { |server, netsize, numdims, numinputchannels, init| var buf; buf = Buffer.alloc(server ? Server.default, netsize ** numdims, numinputchannels); if(init.notNil){ T ...

  5. TestMovingSum Plugin

    ... .ar(DC.ar(1), sumWin) }, { MovingSum.ar(DC.ar(1), sumWin, sumWin) } ]; this.bootServer(Server.default); numTestSamps = Server.default.sampleRate / 2; // ramp up to sumWin and hold that value through numTestSamps testOutput = (1.0, 2 .. sumW ...

  6. blbufrd-test Plugin

    s.quit s.boot // fill a buffer with an impulse-train b = Buffer.alloc(Server.default, Server.default.sampleRate*2, 1); { RecordBuf.ar(Blip.ar(440, SampleRate.ir/440), b.bufnum) }.play // play back with double speed - heavy aliasing occurs w ...

  7. FFTDiffMags Plugin

    ... erent. // Watch the output to channel 0 to see the shape of the returned signal Server .default_(s = Server .internal.boot); b = Buffer .alloc(s, 1024, 1); c = Buffer .alloc(s, 1024, 1); ( { var chain1, chain2, chain, sig1, sig2, difference ...

  8. FFTSubbandPower Plugin

    ... ied on initialisation - they can't be modulated. Examples // Simple example s = Server .local.boot; //Server.internal.boot; b = Buffer .alloc(s,2048,1); ( x = { var in, chain, powers, cutfreqs; in = LPF .ar( WhiteNoise .ar, MouseX .kr(10,10 ...

  9. MCLDTreeUGens Plugin

    ... UGens>Analysis"] } // a LANGUAGE-SIDE equivalent of the classification that the server-side ugen does. // returns pathInteger // (Don't use the "pathInt" arg, it's used for recursion.) *classify { |point, treedata, pathInt=1| var node = tre ...

  10. AudioMSG Plugin

    ... ew('audio', in, index).madd(mul, add); } } //(in*0.5pi) + (in*2pi*index) /* s = Server.internal.boot; s.scope(1); {AudioMSG.ar(SinOsc.ar(440, 0, 0.3), MouseX.kr(0, 2pi))}.play(s); s.quit; */

1 2 3 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow