Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (458) Code (127) Doc (139) Help (76) Quark (116) SCDoc ↗ Forum ↗ Google ↗
  1. Ref Help

    ... [ [500, 501, 700] ], sustain: 2).play ) ( Pbind (*[ instrument: \multi , freq: Prand ([ [[100, 141, 103] ], [[100, 310, 190] ], [[100, 100.1, 110] ], ], inf ), dur: 0.2, sustain: 0.3 ]).play; )

  2. PG_Ref01_Pattern_Internals Help

    ... he pattern's work One of the simpler pattern definitions in the main library is Prand: Prand : ListPattern { embedInStream { arg inval; var item; repeats.value.do({ arg i; item = list.at(list.size.rand); inval = item.embedInStream(inval); } ...

  3. Pdef Help

    ... v = EnvGen .kr( Env .perc(0.03, sustain), 1, doneAction:2); 3.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)); }).store; ) s.boot; P ...

  4. Score Help

    ... ng Score from a pattern SynthDescLib .read; // new pattern ( p = Pbind ( \dur , Prand ([0.3, 0.5], inf ), \freq , Prand ([200, 300, 500], inf ) ); ) // make a score from the pattern, 4 beats long z = p.asScore(4.0); z.score.postcs; z.play; ...

  5. PatternProxy Help

    ... v = EnvGen .kr( Env .perc(0.03, sustain), 1, doneAction:2); 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)); }).store; s.boot; ) ( ...

  6. Streams-Patterns-Events4 Help

    ... tring, { var out; Environment .use({ // set values in the environment ~freq = exprand(80, 600); ~amp = 0.1 + 0.3.rand; ~pan = 1.0.rand2; // call a randomly chosen instrument function // with values from the environment out = [a,b,c].choose. ...

  7. MIDIOut Help

    ... or sending midi events MIDIClient .init; m = MIDIOut (0); a = Pbind ( \degree , Prand ([1, 2, 3, [0, 5]], inf ), \bend , Pwhite (0, 76, inf )); // chain a midi event into the pattern and play it (see Pchain ) (a <> (type: \midi , midiout: m ...

  8. PG_04_Words_to_Phrases Help

    ... re complex results. Patterns within list patterns We saw list patterns ( Pseq , Prand , etc.) that returned numbers from a preset list, either in the order given or rearranged randomly. The list may also include other patterns. When a list ...

  9. Sequencing with Patterns Help

    ... t's values in order Pshuf(list, repeats) -- scramble the list into random order Prand(list, repeats) -- choose from the list's values randomly Pxrand(list, repeats) -- choose randomly, but never return the same list item twice in a row Pwra ...

  10. PdefGui Help

    ... classes) makeSkip - A flag whether to make a skipjack. Pdef ( \a , Pbind(\freq, Prand((1..16) * 55, inf))); Pdef ( \a).play; t = PdefGui ( Pdef ( \a ), 4); Pdef ( \a ).set( \dur , 0.125, \amp , 0.05); Pdef ( \a ).stop; Pdef ( \a ).play; Pde ...

prev 1 2 3 4 5 6 7 8 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow