Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1643) Code (228) Doc (514) Help (194) Quark (697) Plugin (10) SCDoc ↗ Forum ↗ Google ↗
  1. softSet Help

    ... (soft takeover). Ndef ( \test , { |freq=200| Splay.ar( SinOsc .ar(freq * Array.rand(12, 0.95, 1.05))) }); Ndef ( \test ).play(vol: 0.1); Ndef ( \test ).gui(4) Ndef ( \test ).set( \freq , 300); // 3 midi steps == 0.02362; Ndef ( \test ).sof ...

  2. Pattern Help

    ... 1, pan, amp=0.1; var out, eg, fc, osc, a, b, w; fc = LinExp .kr( LFNoise1 .kr( Rand (0.25, 0.4)), -1, 1, 500, 2000); osc = Mix .fill(8, { LFSaw .ar(freq * [ Rand (0.99, 1.01), Rand (0.99, 1.01)], 0, amp) }).distort * 0.2; eg = EnvGen .kr( ...

  3. SequenceableCollection Help

    ... default: 0) Array .fib(5); Array .fib(5, 2, 32); // start from 32 with step 2. *rand(size, minVal, maxVal) Fill a SequenceableCollection with random values in the range minVal to maxVal. Array .rand(8, 1, 100); *rand2(size, val) Fill a Sequ ...

  4. Pstep Help

    ... ons, accent patterns, etc. ( // select a chord and duration and repeat it for a random time interval p = Pstep ( Pbind ( \ctranspose , [0, 4, 7], \note , Pwhite (0, 12), \dur , Prand ([0.2, 0.4, 0.8], inf ) ), Prand ([1, 2, 4], inf )/4 ); P ...

  5. MultiChannel Help

    ... eo position CombL .ar( // a comb filter used as a string resonator Dust .ar( // random impulses as an excitation function // an array to cause expansion of Dust to n channels // 1 means one impulse per second on average Array .fill(n, 1), 0 ...

  6. UGen Help

    ... lculates at audio/control rate or at initialization only (ir). Some UGens, like Rand , use the *new method instead. These methods are implemented in subclasses, where argument names and their meaning depend on the case. If any argument is a ...

  7. Semaphore Help

    ... ; c.signal; "thread 1> ok, done. Release the semaphore." .postln; }; fork { 3.0.rand.wait; "thread 2> I would like to go on, if I may." .postln; c.wait; // may I? "thread 2> this took until the other thread has released the semaphore. " "Bl ...

  8. VOsc3 Help

    ... rmonic amplitudes n = (i+1)*8; a = Array .fill(n,0); (n>>1).do({ arg i; a.put(n.rand, 1) }); // fill table s.performList( \sendMsg , \b_gen , i, \sine1 , 7, a); }); ) ( 8.do({ arg i; var a; s.sendMsg( \b_alloc , i, 1024); // allocate table ...

  9. softPut Help

    ... 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, 0.11); // small change, OK to set e.put( \amp , 0.1) ...

  10. SCView Help

    ... front; v= SCCompositeView .new(w,w.view.bounds.insetBy(10)).background_( Color .rand); v.decorator= FlowLayout (v.bounds); t= Array .fill(9,{ arg i; var n,r,q; n= SCCompositeView .new(v, Rect (20,20,121,121)).background_( Color .rand); q= S ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow