Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... GeneralHID and PhidKey // example // build the device list and start the event loop: GeneralHID.buildDeviceList; GeneralHID.startEventLoop; // find an Impact game device and open it: a = GeneralHID.open( GeneralHID.findBy( 1973 ) ); // ins ...

  2. Klang Help

    ... Klang .ar(`[ Array .rand(12, 600.0, 1000.0), nil , nil ], 1, 0) * 0.05 }); ( { loop({ play({ Pan2 .ar( Klang .ar(`[ Array .rand(12, 200.0, 2000.0), nil , nil ], 1, 0), 1.0.rand) * EnvGen .kr( Env .sine(4), 1, 0.02, doneAction: 2); }); 2.wa ...

  3. Prorate Help

    ... 3, 12], inf ) ); 3.do { { var x = a.asStream; var freq = rrand(72, 84).midicps; loop { Synth ( \help_sinegrain , [ \freq , freq]); (0.25 * x.next).wait; } }.fork; }; )

  4. Plazy Help

    ... .size.rand, 8+0.1.rand2); Pseq (x,1); }); x = Pn (a, inf ).asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , (x.next*5+70).midicps]); 0.13.wait; }) }).play; ) // using event streams ( a = Plazy ({ var x, y; x = Array .series(r ...

  5. Fdef Help

    ... thread that plays some sounds ( Fdef ( \freq , 440); Fdef ( \dur , 0.2); fork { loop { s.sendMsg( "/s_new" , "gpdef" , -1, 1,1, \freq , Fdef ( \freq ).value); Fdef ( \dur ).value.wait; } }; ) // some modifications Fdef ( \freq , Fdef ( \mid ...

  6. Condition Help

    ... a routine that can pause under certin conditions: ( c = Condition .new; fork { loop { 1.wait; "going" .postln; c.wait } }; ) c.test = true ; c.signal; c.test = false ; // the same, using hang ( c = Condition .new; Routine { 1.wait; "waited ...

  7. PV_Div Help

    ... ab the FFT buffer and peek at the magnitudes ( w = Window .new.front; t = Task {loop{ 0.1.wait; b.loadToFloatArray(action: { |data| { w.view.children.do( _ .remove); w.refresh; data[2..].clump(2) .collect { |a| (a[0].squared + a[1].squared) ...

  8. softPut Help

    ... ld occur (soft takeover). ( e = (amp: 0.1, dur: 0.2); Tdef ( \test , { var dur; loop { dur = e.dur; (amp: e.amp, dur: dur, degree: 7.rand).play; dur.wait; }; }).play; ) e.put( \amp , 0.03); // just set it e.put( \amp , 0.1); e.softPut(\amp, ...

  9. pvcalc Help

    ... v" ); } ) ( x = { var in, chain, v; in = PlayBuf .ar(1, c, BufRateScale .kr(c), loop: 1); chain = FFT ( LocalBuf (1024), in); chain = chain.pvcalc(1024, { |mags, phases| //////// Try uncommenting each of these lines in turn and re-running t ...

  10. Ptuple Help

    ... 2], inf ) + a; c = Ptuple ([a, b], inf ); x = c.asStream; Routine ({ var chord; loop({ chord = x.next.postln.midicps; (instrument: \help_sinegrain , freq : chord).play; 0.2.wait; }) }).play; )

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow