Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1702) Code (152) Doc (537) Help (191) Quark (806) Plugin (16) SCDoc ↗ Forum ↗ Google ↗
  1. Exercise_10_HOA_decoding_for_speaker_arrays Doc

    ... aSignal.source = { HPF.ar(PlayBuf.ar( ~hoaSoundFile.numChannels, ~hoaSoundFile, loop:1 ), 100) }; ~toaSignal.fadeTime = 1; ) ⧉ ✔ Let's make two more nodes that generate 2nd and 1st order HOA sounds to go with it. ( ~soaSignal = NodeProxy.ne ...

  2. MedianSeparation Doc

    ... on expects mono input ( { var harmonic, percussive; var source = PlayBuf.ar(1,d,loop:1); var fft = FFT(a,source,0.5); //can try overlap 0.25 harmonic = PV_Copy(fft, b); percussive = PV_Copy(fft, c); //#harmonic,percussive = MedianSeparation ...

  3. PG_06d_Parallel_Patterns Doc

    ... r can keep going indefinitely. ( p = Pspawner({ |sp| // sp = the Spawner object loop { // run a new pattern in parallel // the pattern is finite // after a few events, it stops and the Pspawner forgets about it sp.par(Pbind( \degree, Pserie ...

  4. TempoClick Doc

    ... ), pos = Phasor.ar(trig, 1, start, 1e26, start), sig = BufRd.ar(1, bufnum, pos, loop: 0), decay = Decay2.kr(trig, 0.01, 0.1); (sig * decay) ! 2 }.play(args: [t_trig: c, bufnum: b]); ) // TempoClick uses server.latency, just like patterns by ...

  5. DXEnvFan Doc

    ... teScale.kr(b), env, Demand.ar(env, 0, Drand((2..5)/10, inf) * BufFrames.ir(b)), loop: 0, ) * env) } ! 2 ; }.play ) x.release // variant with multichannel expansion // two 8 ch trigger envelopes are used for L and R mixes ( x = { var buf, en ...

  6. Rest Doc

    ... vent Examples Using Rest instances in a pitch stream ( Pbind( \degree, Pif( 0.1.loop.coin, Pseq([Rest(), 7], inf), // every second is a Rest Pseries(0, 1, inf).fold(-7, 7) ), \dur, 0.125 ).play ) ⧉ ✔ Using a Rest instance in a duration stre ...

  7. ProxyPreset Doc

    ... Spec(\sustain, [0.003, 3, \exp]); // define what the Tdef does Tdef(\a, { |env| loop({ ( instrument: \pingbend, freq: env[\freq], bend: env[\bend] + env[\bendVar].rand2, sustain: env[\sustain], pan: 1.0.rand2 ).play; env[\dt].wait; }) }); T ...

  8. jitlib_basic_concepts_04 Doc

    ... 001, 0.03, 0.4), doneAction: Done.freeSelf) }; // jittery tone. ( r = Routine { loop { 200.do { arg i; ~x.spawn; (0.005).wait; }; 1.wait; } }.play; ) ProxySynthDef.sampleAccurate = true; // steady tone, because sample accurate. ~x.rebuild; ...

  9. Exercise_04_HOA_plane_versus_spherical_waves Doc

    ... us = 1| HOAEncoder.ar(~order, PlayBuf.ar(1, ~buffer, BufRateScale.kr(~buffer) , loop:1), azimuth, elev:0, gain:0, plane_spherical:1, radius: radius )}; w = Window("Slider2D", Rect(100, 100, 300, 300)); t = Slider2D(w, Rect(20, 20, 260, 260) ...

  10. CircleRamp Doc

    ... nt.theta + 0.5pi); targPoint = Point(x, y) - Point(200, 200); // trunc to avoid loops due to fp math targRotate = (targPoint.theta - actPoint.theta).trunc(1e-15); // wrap around if(targRotate.abs > pi, {targRotate = (2pi - targRotate.abs) * ...

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow