Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (572) Code (144) Doc (154) Help (54) Quark (220) SCDoc ↗ Forum ↗ Google ↗
  1. PSdup Quark

    ... sp. p y.nextN(10) // data sharing with event patterns ( p = Pbind ( \midinote , Pwhite (60, 90) + PLrand ([0, 0, [0, -3]]), \dur , PLrand ([0.2, 0.4]), \amp , PLrand ([0.07, 0.12, 0.2]), \type , Pfunc { 0.1.coin.if { \rest }{ \note } }, \pa ...

  2. ModalSpec Quark

    ... ttom ) + ~chord, \freq , Pfunc ({ |ev| ev[ \mode ].cps(ev[ \notes ]) }), \dur , Pwhite (1, 4, inf ) * 0.5, \instrument , \default ).play; p.stop; // better way if you do this kind of thing often: // create a new protoevent, replacing the ~f ...

  3. ModalSpec Quark

    ... ttom ) + ~chord, \freq , Pfunc ({ |ev| ev[ \mode ].cps(ev[ \notes ]) }), \dur , Pwhite (1, 4, inf ) * 0.5, \instrument , \default ).play; p.stop; // better way if you do this kind of thing often: // create a new protoevent, replacing the ~f ...

  4. ddwPatternLengthEstimation Quark

    ... Pgeom { estimateLength { ^length } } + Pbrown { estimateLength { ^length } } + Pwhite { estimateLength { ^length } } + Paccum { estimateLength { ^length } } // list patterns generally have a repeat argument // we'll assume most of them ret ...

  5. PbindMultiChan Quark

    ... air. p = Pbind (#[x, y, z], Ptuple ([ Pseries (0, 1, inf ), Pgeom (1, 2, inf ), Pwhite (1, 10, inf )], inf )).asStream; p.next(()); ( 'y': 1, 'x': 0, 'z': 6 ) ( 'y': 2, 'x': 1, 'z': 6 ) ( 'y': 4, 'x': 2, 'z': 7 ) ( 'y': 8, 'x': 3, 'z': 8 ) ...

  6. PbindMultiChan Quark

    ... air. p = Pbind (#[x, y, z], Ptuple ([ Pseries (0, 1, inf ), Pgeom (1, 2, inf ), Pwhite (1, 10, inf )], inf )).asStream; p.next(()); ( 'y': 1, 'x': 0, 'z': 6 ) ( 'y': 2, 'x': 1, 'z': 6 ) ( 'y': 4, 'x': 2, 'z': 7 ) ( 'y': 8, 'x': 3, 'z': 8 ) ...

  7. saybuf_premake Quark

    ... ~bufs), \dur, Pn(Pgeom(0.5, 0.992, 250), 4) * Pn(Pgeom(1, 0.99, 143), 7), \pan, Pwhite(-1.0, 1.0), \rate, Pbrown(0.9, 1.1, 0.02) * Pwrand([1, -1], [0.9, 0.1], inf) ) ).play; ) ///////// for completeness, here is a test for writing files /// ...

  8. ddwPatternLengthEstimation Quark

    ... Pgeom { estimateLength { ^length } } + Pbrown { estimateLength { ^length } } + Pwhite { estimateLength { ^length } } + Paccum { estimateLength { ^length } } // list patterns generally have a repeat argument // we'll assume most of them ret ...

  9. SimpleMIDIFile Quark

    ... files as well: ( p = Pbind ( \dur , Prand ( [ 0.25 , 0.5 , 1 ], inf ), \freq , Pwhite ( 440 , 880 ), \db , Pwhite ( -40 , -10 ), \legato , Pwhite ( 0.25 , 4 ) ); m = SimpleMIDIFile ( "~/Desktop/testPat.mid" ); m.init1( 2 , 120 , "4/4" ); m ...

  10. bufPerc Quark

    ... 0], compactPatterns: false , inChannels: 2, def: \bufGrainPan , argPairs: [pan: Pwhite (-1.0, 1.0, inf )] )); ) BP ( \ex2 ).play; BP ( \ex2 ).stop; BP ( \ex2 ).free; // Auto-generated rhythm, calculating 16-element arrays then shrinking the ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow