Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... 0, startPos=0, rate = 1, t_trig=0 | // // DiskIn.ar(1, bufnum, loop = loop); // PlayBuf.ar(1, bufnum, rate, t_trig, startPos, loop); // }; // /* Audio plugin definition Each audio plugin should define the following global variables: ~name: ...

  2. Block Quark

    ... hat a block does with its buffer, read from its code: nil (no buffer), //\play (PlayBuf), \scpv (PV_PlayBuf), \cue (DiskIn), \vosc (VOsc), //\wavetable (Osc, COsc, Shaper) or \other *bufferKind {arg blockName; var func, string; func = Synth ...

  3. SCLOrkSamples Quark

    ... n be turned off at end of synth currentRoutine = Routine.new({ currentSynth = { PlayBuf.ar( numChannels: channels, bufnum: buffer, rate: BufRateScale.kr(buffer), doneAction: 2 ) }.play; currentButton = button; (buffer.duration).wait; // cle ...

  4. saybuf_synthdefs Quark

    ... 0.01) // ... and wrap to legal range .wrap(0, BufFrames.ir(buf) - 1); var snd = PlayBuf.ar(1, buf, BufRateScale.ir(buf) * ratesig * vibsig, startPos: startpos, doneAction: 2 ); Out.ar(out, Pan2.ar(snd, pan, amp) ) }).add; ); /*** 3. ringmod ...

  5. WFSSynthDef Quark

    ... noiseLevel )) * LFPulse.kr(10 * rate); }, 'buf': { |bufP, rate = 1, loop = 0.0| PlayBuf.ar(1, bufP, rate * BufRateScale.kr( bufP ), loop: loop); }, 'disk': { |bufP| DiskIn.ar(1, bufP ); }, 'live': { |input = 1| AudioIn.ar( input ); } )[audi ...

  6. TimeStretch2 Quark

    ... stretch*(1-startPos)); jump = fftSize/stretch/2; pos = [pos, pos + jump]; sig = PlayBuf.ar(1, bufnum, 1, trig1, pos, 1)*SinOsc.ar(1/(2*trigPeriod)).abs*0.5; sig = sig.collect({ |item, i| chain = FFT(LocalBuf(fftSize), item, hop: 1.0, wintyp ...

  7. SampleDescript copy Quark

    ... r]} {buf = activeBuffer[activeBuffer.size.rand]} }; if(buf.size == 1) {{Pan2.ar(PlayBuf.ar(1, buf[0], doneAction: 2, rate: BufRateScale.ir(buf[0]) * rate), pan, level)}.play(outbus: out)} {{Balance2.ar(PlayBuf.ar(1, buf[0], doneAction: 2, r ...

  8. README Quark

    ... 'Jack the Mosquito' but let's try as an input a slightly modified example from `PlayBuf`'s help file. // read a sound file into memory b = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav"); // remember to free the buffer later. ...

  9. Fb Quark

    ... imple dub delay effect b = Buffer .read(s, "sounds/a11wlk01.wav" ) ( { var in = PlayBuf .ar( 1 ,b); var out = in + Fb ({ arg feedback; // this will contain the delayed output from the Fb unit // filter and distort the feedback signal. // No ...

  10. ZeroXBufRd Quark

    ... 4/5, 1.25 = 5/4), // so playback will not be faster than writing. ( { var src = PlayBuf .ar(1, b, BufRateScale .ir(b)); // write zero crossings, but no need to overwrite sound buffer ZeroXBufWr .ar(src, b, z, startWithZeroX: 1, writeSndBuf: ...

prev 11 12 13 14 15 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow