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 Doc

    ... lows setting. Examples 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).softSet(\freq, 32 ...

  2. Streams-Patterns-Events1 Doc

    ... in response to next and reset. Here is a FuncStream that represents an infinite random sequence: ( var a; a = FuncStream.new({ #[1, 2, 3, 4].choose }); 5.do({ a.next.postln; }); // print 5 values from the stream ) ⧉ ✔ Another useful subclas ...

  3. MultiProc Doc

    ... set to nil if unneeded. The default behaviour with all nil is a phrasefunc that randomly selects any index up to procs.size. Inherited class methods Instance Methods . initMultiProc Arguments as for new. All other methods override the base ...

  4. Stepper Doc

    ... uencing // s.boot; s.sendMsg(\b_alloc, 10, 128); m = #[0, 3, 5, 7, 10]; a = ({ rrand(0, 15) }.dup(16).degreeToKey(m) + 36).midicps; s.performList(\sendMsg, \b_setn, 10, 0, a.size, a); ( SynthDef(\stepper, { |out| var rate, clock, index, fre ...

  5. ilisp Doc

    ... rences to Instr and are loaded from disk if needed. // define some instr Instr("random-list", { arg qty=100, min=0.0, max=1.0; Array.rand(qty, min, max) }); Instr("pseq", { arg list, repeats=128; Pseq(list, repeats) }); // create a randomly ...

  6. SensorSonificator Doc

    ... Bus.control(s,1); ( // generate some data Tdef( \updateBus, { loop{ b.set( 1.0.rand.postln; ); rrand(0.05,0.3).wait; } }).play; ); ~output = Bus.new('audio', 0 ); // create a sonificator for the first bus: x = SensorSonificator.new( b, ~ou ...

  7. Scheduler Doc

    ... loop { x.advance(0.1); 0.1.wait }; }.play; ) ( Task { 5.do { x.advance(1); 2.0.rand.wait; } }.play; ) x.advance(8.1); Pbind(\degree, Pseries(0, 2, 8), \dur, 0.25).play(x); ( Task { 5.do { x.advance(0.20); 1.0.wait; } }.play; ) ⧉ ✔ helpfile ...

  8. Pbindef Doc

    ... ar(Env.perc(0.01, sustain), 1, doneAction: Done.freeSelf); 5.do { var d; d = exprand(0.01, 1); u = SinOsc.ar(d * 300, u, rrand(0.1, 1.2) * d, 1) }; Out.ar(out, Pan2.ar(SinOsc.ar(u + 1 * freq, 0, amp * env), pan)); }).add; ) Pbindef(\a, inst ...

  9. Pgpar Doc

    ... s.waitForBoot({ s.plotTree }); ( var p, q, r, o; Pbus( Pgpar([ Pbind(\degree, Prand((0..7), inf), \dur, 0.3, \legato, 0.2), Pbind(\instrument, \echo, \dur, 3, \legato, 1.1, \dtime, Pwhite(0.01, 0.1, inf), \decay, 3), Pbind(\instrument, \di ...

  10. OverlapTexture Doc

    ... ay of synthdefs). If the synthdef is an array of synthdefs, OverlapTexture will randomly choose which synthdef to play on each new synth creation. inserver If not specified, will use the default server. Inherited class methods Instance Meth ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow