Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (474) Code (97) Doc (170) Help (73) Quark (130) Plugin (4) SCDoc ↗ Forum ↗ Google ↗
  1. TestKMeansRT Quark

    ... ; 0.2.wait; s.sync; thesynth = { Line.kr(0,0,1,doneAction:2); KMeansRT.kr(buf, {PinkNoise.kr}.dup(d), numclust, gate:1, reset:0, learn:0); }.play(s); 0.2.wait; s.sync; 1.0.wait; buf.loadToFloatArray(action: {|data| this.assertArrayFloatEqua ...

  2. DetectSilence Doc

    ... e quiet enough for a long enough time { var signal = Decay.ar(Impulse.ar(0), 2, PinkNoise.ar(0.2)); DetectSilence.ar(signal, doneAction: Done.freeSelf); signal }.play; ⧉ ✔ If the input signal starts with silence at the beginning of the synt ...

  3. SoftSet Doc

    ... ithin: 0.1); // now put in a sound process that uses \freq: Ndef(\a, { Ringz.ar(PinkNoise.ar, \freq.kr(440).lag(0.1), 0.3) }).play; // See examples below for how to use this in controllers, // but first see their different behaviors with sl ...

  4. Tour_of_UGens Doc

    ... .scope(1, zoom:8); ⧉ ✔ Broad Spectrum Noise Generators ClipNoise , WhiteNoise , PinkNoise , BrownNoise , GrayNoise arguments: mul, add { ClipNoise.ar(0.2) }.scope(1); { WhiteNoise.ar(0.2) }.scope(1); { PinkNoise.ar(0.4) }.scope(1); { BrownN ...

  5. FoaMatrixFade Doc

    ... = s.audioBusAllocator.alloc( 4 ); a = FoaMatrixFade(0, b); ~foa = { FoaPanB.ar( PinkNoise.ar(0.25), LFSaw.kr(0.3).range(0,2pi)) }.play(outbus: b) // swap to full focus to the left a.matrix_( FoaXformerMatrix.newFocus(pi/2, pi/2) ) // swap t ...

  6. SelectXFocus Doc

    ... ).range(0, 700) + 220) ); SelectXFocus.ar(mx * n, a, my * n) * 0.2 + OnePole.ar(PinkNoise.ar(0.5 ! 2), 0.4) * Line.kr(0, 1, 3); }.play; ) // jimmy played harmonica in the pub where I was born // (hh) (jrh) (cc 2006) ( { var blas, zieh, mx, ...

  7. BusPlug Doc

    ... ree; // using as a audio monitor p = BusPlug.audio(s, 2); d = { Out.ar(p.index, PinkNoise.ar([0.1, 0.1])) }.play; p.play; // monitor whatever plays in p (the execution order does not matter) d.free; d = { Out.ar(p.index, PinkNoise.ar([0.1, ...

  8. Coyote Doc

    ... trig), Decay.kr(trig, TRand.kr(0.1, 2, trig), 3.reciprocal)); } ); var detect = PinkNoise.ar(Decay.kr(Coyote.kr(sounds, fastMul: 0.6, thresh: 0.001), 0.2)); Out.ar(0, [detect, sounds]); } ).send(s); ) x = Synth.new("coyote") x.free; ⧉ ✔ hel ...

  9. Done Doc

    ... ssible by using doneActions alone: play { var env = Line.kr(1, 0, 2); var sig = PinkNoise.ar(env); FreeSelf.kr(TDelay.kr(Done.kr(env), 3)); GVerb.ar(sig, 70, 7); } ⧉ ✔ Actions A number of UGens implement doneActions. These allow one to opti ...

  10. Mix it Up Help

    ... UGens together? This turns out to be equally simple. All we need is addition: { PinkNoise .ar(0.2) + SinOsc .ar(440, 0, 0.2) + Saw .ar(660, 0.2) }.play; Saw is another type of oscillator, with a waveform that looks like a sawtooth. Note tha ...

prev 31 32 33 34 35 36 37 38 39 40 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow