Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1234) Code (312) Doc (341) Help (126) Quark (454) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. PG_Cookbook07_Rhythmic_Variations Help

    ... (keys.size * 2); keys.do({ |key| if(key.envirGet.notNil) { pairs.add(key).add( Pseq (key.envirGet, 1)) }; }); pairs }, // identify rests in the rhythm array // (to know where to stick notes in) getRestIndices: { |array| var result = Array ...

  2. PG_06g_Data_Sharing Help

    ... ng simple - the higher the note, the shorter the length ( p = Pbind ( \degree , Pseq ([ Pseries (-7, 1, 14), Pseries (7, -1, 14)], inf ), \dur , 0.25, // \degree is EARLIER in the Pbind \legato , Pkey ( \degree ).linexp(-7, 7, 2.0, 0.05) ). ...

  3. Polymorphism Help

    ... f" , { arg out=0; Out .ar(out, PinkNoise .ar(0.1)) }).play; ) Pbind ( \degree , Pseq ([0, 1, 2, 3], inf )).play; // Pattern Polymorphism allows you to write code that does not assume anything about the implementation of an object, but rathe ...

  4. softPut Help

    ... od, which // forwards softPut to their envirs: Pdef ( \test , Pbind ( \degree , Pseq ((0..7), inf ))).play; Pdef ( \test ).set( \amp , 0.03) Pdef ( \test ).envir.softPut( \amp , 0.06); // no, too big Pdef ( \test ).envir.softPut( \amp , 0.0 ...

  5. proxyspace_examples Help

    ... 0, 30, 100) }; ~lfo2 = { LFClipNoise .kr(3, 100, 200) }; ~lfo3 = StreamKrDur ( Pseq ([ Prand ([530, 600],1), 700, 400, 800, 500].scramble, inf ) / 3, 0.2); ~out.xmap( \ffreq , ~lfo2); ~out.xmap( \ffreq , ~lfo); ~out.xmap( \ffreq , ~lfo3); ...

  6. PG_03_What_Is_Pbind Help

    ... o next , so that Pbind has somewhere to put the values. ( p = Pbind ( \degree , Pseq (#[0, 0, 4, 4, 5, 5, 4], 1), \dur , Pseq (#[0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 1], 1) ).asStream; // remember, you have to make a stream out of the pattern befo ...

  7. PG_06d_Parallel_Patterns Help

    ... tpar with separate groups for the subpatterns. An excellent example of Ppar and Pseq used together to structure an entire piece (Kraftwerk's "Spacelab") can be found in examples/pieces/spacelab.scd . Dynamic parallelizing Ppar and its cousi ...

  8. jitlib_basic_concepts_04 Help

    ... .05).dup }; // impulse uses tempo ~x = Pbind ( \instrument , \default , \freq , Pseq ([300, 400], inf )); // pattern uses tempoclock p.clock.tempo = 1.0; // set the tempo to 1 p.clock.tempo = 2.2; // set the tempo to 2.2 ~x.free; ~y.free; d ...

  9. Ndef Help

    ... roxy , and NodeProxy_roles // setsrc ( Ndef ( \x , \setsrc -> Pbind ( \source , Pseq ([ { LFTri .ar(280 * Line .kr(1.1, 0.4, rrand(2, 3)) + [0,1]) * 0.1 }, { Pulse .ar(40 + [0,1]) * 0.1 }, { LFTri .ar( LFTri .kr(1).round(1.0.rand) + 1 * 180 ...

  10. LFGauss Help

    ... \x , Pbind ( \instrument , \gabor , \freq , 1000, \dur , 0.01, \width , Pseg ( Pseq ([0.25, 0.002], inf ), 10, \exp ), \legato , 2 ) ).play ) // compare with sine grain. ( SynthDef ( \gabor , { |out, i_freq = 440, i_sustain = 1, i_pan = 1, ...

prev 11 12 13 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow