Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (513) Code (102) Doc (171) Help (75) Quark (148) Plugin (17) SCDoc ↗ Forum ↗ Google ↗
  1. Convolution reverb and impulse responses by zecraum (zecraum) Code

    ... // convolve with target soundfile ( { var input, convLevel = 0.6; input = PlayBuf.ar(1, a.target.bufnum, loop:1); Out.ar(0, (convLevel * PartConv.ar(input, a.fftsize, a.irspectrum.bufnum, 0.5)) ! 2); }.play; ) // convolve with ...

  2. Reverse reverb by zecraum (zecraum) Code

    ... /+ "sounds/a11wlk01.wav"); ( { var input, kernel, mix = 0.5; input= PlayBuf.ar(1, ~target, loop:1); // snare //input= WhiteNoise.ar(0.125) + SinOsc.ar(200, mul:0.125) * Decay.ar(Impulse.ar(1/4),1); Out.ar(0, input * mix + ...

  3. example sequencing soundfiles by fredrik-olofsson (Fredrik Olofsson) Code

    ... s/Screech-08.wav") ]; SynthDef(\sample, {|out= 0, buf, rate= 1| Out.ar(out, PlayBuf.ar(1, buf, rate, doneAction:2)!2); }).add; ) //test1 - single Synth(\sample, [\buf, b[0]]).register.onFree{"hello".postln};//should post when fi ...

  4. (mono) looper on Ndef basis by lfsaw (LFSaw) Code

    ... preLevel: preLevel, trigger: resetRec ); // playing back PlayBuf.ar( 1, buffer, rate: playRate, trigger: resetPlay, startPos: playCuePoint, loop: 1 ); }) ) // somet ...

  5. Simple performance script to launch patterns a la Ableton by misc29377 (misc29377) Code

    ... ding to the folders and the index defines the nth sample in this folder. So the PlayBuf have to be modified to match your need. Additionally a synth is create that can be played via Midi keys. At the end of the script is the Play cod ...

  6. EHX Analogizer by 0-3C (bennigraf) Code

    ... escwave__double-bass-test2.wav"); ( ~x.free; ~x = { var a, d, s; a = PlayBuf.ar(2, ~buf, 1, 1, 0, 1); a = a.sum!2; // go mono to make the effect more prominent // the "distortion modeling" could use some more love... s = ...

  7. Function to extract audio from youtube + example usage by gosub (gosub) Code

    ... .kr(bufnum); var lf = LFNoise0.ar(cuts).linlin(-1, 1, 0, frames); var snd = PlayBuf.ar(2, bufnum, BufRateScale.kr(bufnum)/rates, Impulse.kr(cuts), startPos: lf); snd = Splay.ar(snd.flatten.scramble) * Line.kr(1, dist, descent); s ...

  8. ScoreClock, Patterns, RT/NRT and server-side resources by jamshark70 (jamshark70) Code

    ... = 1, amp = 1, attack = 0.001, decay = 0.02, outbus| var sig; sig = PlayBuf.ar(1, bufnum, rate * BufRateScale.kr(bufnum), 1, start, 0) * EnvGen.kr(Env.linen(attack, time, decay), doneAction:2); Out.ar(outbus, Pan2.ar(sig ...

  9. analyze a sample with SCMIR and sort sample segments by similarity by 0-2U (grirgz) Code

    ... loop=0, trigger=1, velamp=1; // pos in seconds var sig; var sig1; sig = PlayBuf.ar(2, bufnum, BufRateScale.kr(bufnum) * speed, trigger, startPos: (pos*BufSampleRate.kr(bufnum)), doneAction:doneAction, loop: loop); sig = sig * EnvG ...

  10. loopr by lfsaw (LFSaw) Code

    ... dd; SynthDef(\looprPlayer, {|buf = 0, loop = 1, out = 0| Out.ar(out, PlayBuf.ar(q.numChans, buf, loop:loop)); }).add; ) ( q.startRec = {|q, idx = 0, from| q.recTo = idx; q.recorder = Synth(\recorder, [\inBus, Ndef(\so ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow