Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (513) Code (102) Doc (171) Help (75) Quark (148) Plugin (17) SCDoc ↗ Forum ↗ Google ↗
  1. sampleEfx Quark

    ... ude constant regardless of overlaps amp = (mul/overlaps)**0.5; // randomize the playbuf offset offset = pointer * bufSize; if(windowRandRatio != 0.0,{ offset = offset + (WhiteNoise.kr.range(0.0,windowRandRatio * windowSize * sampleRate)); } ...

  2. buffer-play-pv Quark

    ... LocalBuf.new(numFrames.linexp(0,1,32,32768), ~buffer0.numChannels); chain = PV_PlayBuf(localbuf, ~buffer0.bufnum, rate, offset.linlin(0,1,0, ~buffer0.numFrames), 1); IFFT(chain, winType)*mul}); == radpostcont == (none) >> plpv 2 @1 == radp ...

  3. Buffers Help

    ... ich reads a sound file into memory, and returns a Buffer object. Using the UGen PlayBuf, we can play the file. // read a soundfile b = Buffer .read(s, "sounds/a11wlk01.wav" ); // now play it ( x = SynthDef ( "tutorial-PlayBuf" ,{ arg out = ...

  4. XiiLoadXiiLangInstr Quark

    ... lider/sounds/insand/short/insects/insec2"); player= if(buffer.numChannels==1, { PlayBuf.ar(1, buffer, 1)!2 }, { PlayBuf.ar(2, buffer, 1)}); env = EnvGen.ar(Env.perc(0.01, 0.4), doneAction:2); signal = player * env * amp; Out.ar(out, signal) ...

  5. RecordBuf Help

    ... y it back ( SynthDef ( \help_RecordBuf_overdub , { arg out = 0, bufnum = 0; var playbuf; playbuf = PlayBuf .ar(1,bufnum); FreeSelfWhenDone .kr(playbuf); // frees the synth when the PlayBuf is finished Out .ar(out, playbuf); }).play(s, [ \ou ...

  6. 13-Buffers Doc

    ... a sound file from disk into memory, and returns a Buffer object. Using the UGen PlayBuf, we can play the file. // ExampleFiles helps locate audio files used in examples p = ExampleFiles.child; // peek at the path to see location and the for ...

  7. TestBuffers Quark

    ... irname.withTrailingSlash ++ "../AudioFiles/Nicol-LoopE-M.wav"); s.sync; a = AN({PlayBuf.ar(1, \b.kr(b), BufRateScale.kr(\b.kr(b)) * \s.kr(1), loop:1)}, [\s, 2]) }) ) p = AN({\in.ar([0, 0])}, connectionTime:1).play p << a; //\s is maintained ...

  8. 03_Buffers Quark

    ( Alga.boot({ //Simple Buffer player AlgaSynthDef(\playBuf, { PlayBuf.ar(2, \buf.ir(0), BufRateScale.kr(\buf.ir), doneAction:2) }, sampleAccurate: true).add; //Read a kick and a snare b = Buffer.read(s, File.realpath(Alga.class.filenameSymb ...

  9. startup00-ddwSynths Quark

    ... bufnum, rate = 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, sig * amp); }).perf ...

  10. CutBuf2 Quark

    ... r whichsynthdef; *initClass { StartUp.add({ 2.do({arg i; SynthDef.writeOnce(\cb2playbuf++((i+1).asSymbol),{arg bufnum=0,outbus=0,rate=1,startPos=0,dur=0.1,atkprop=0.005, relprop=0.005, curve=0; var playbuf, env; playbuf= PlayBuf.ar(i+1,bufn ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow