Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (72) Code (21) Doc (24) Help (7) Quark (20) SCDoc ↗ Forum ↗ Google ↗
  1. TestDurInterpolationAP Quark

    ... c: { ~dur = ~what.asStream }, sched: 1, topPriority: true); }) } }) ) //Use AlgaPseg's onDone to resync the pattern ( a.addAction(func: { ~ft = 5 * a.clock.tempo; if(~pseg != nil, { ~pseg.stop }); ~what = 0.1; ~pseg = AlgaPseg([0, 1, 0.5, 1 ...

  2. TestDurInterpolation Quark

    ... ar val = ~dur.next; val.postln; val } ).play(clock: t) }) ) //The .stop for AlgaPseg allows to "stop" timing of the previous blend, freezing it! ( ~ft = 5 * t.tempo; //tempo agnostic, as Pseg only works with beats if(~blend != nil, { ~blend ...

  3. PIdev Quark

    ... ev = -1; ~hiDev = 1; ~lookBack = 2; p = Pbind ( \dur , 1/7, \midinote , PIdev ( Pseg ( Pseq ([65, 90], inf ), 5, \sin ).round, 11, Pfunc { ~loDev }, Pfunc { ~hiDev }, Pfunc { ~lookBack } ).trace(prefix: "midi "), ).play; ) // widen range an ...

  4. PatternDurFix Quark

    ... hang; } }).play(~clock); ) ( ~dur = 2; ~condition.unhang; ) ( ~ft = 1; ~blend = Pseg([0, 1, 1], [~ft, inf], \lin); ~what = 1; ~dur = (~dur.blend(~what, ~blend)).asStream; //~condition.unhang; ) ( ~player = EventStreamPlayer(~stream, Event.p ...

  5. PLIdev Quark

    ... v = -1; ~hiDev = 1; ~lookBack = 2; p = Pbind ( \dur , 1/7, \midinote , PLIdev ( Pseg ( Pseq ([65, 90], inf ), 5, \sin ).round, 11, \loDev , \hiDev , \lookBack ).trace(prefix: "midi " ), ).play; ) // widen range and increase lookBack ( ~loDe ...

  6. PatternsInterplation Quark

    ... \dur, 0.05, \amp, 0.01 ).play; ~interp = { | param, what, ft = 1 | var blend = Pseg([0, 1, 1], [ft, inf], \lin); ~params[param] = (~params[param].blend(what, blend)).asStream; }; ) ~interp.(\freq, Pseq([220, 880], inf), 4); ~interp.(\freq, ...

  7. particle_system_without_graphics Quark

    ... 25, -0.25], inf) )).play; ) ( Pdef(\mel, Pbind( \type, \spring, \dur, 0.25, \x, Pseg([-1, 1], 11, 'lin', inf), \y, Pseg([-1, 1], 9, 'lin', inf), \z, Pseg([-1, 1], 5, 'lin', inf) )).play; ) ( Pdef(\mel, Pbind( \type, \spring, \dur, 0.25, \x, ...

  8. Stream Quark

    ... inval)); iDur.wait; }; wait(n*iDur); { action.(return); }.defer; }.play; } } /* Pseg(Pseq([0,1]),Pseq([200]*(1/44100))).asStream.nextT(200,action:{|array| ~temp=array.plot}); */

  9. 210-patterns_and_particles Quark

    ... , 0]), \finish, Pfunc{|ev| ~createObj.value(x: ev.degree/11)}).play Pbind(\dur, Pseg(Pseq([0.5, 0.1, 0.08, 0.5]), Pseq([5, 1, 3])), \degree, Pseg(Pseq([0, 15, 12, 0]), Pseq([5, 2, 3])), \finish, Pfunc{|ev| ~createObj.value(y: ev.degree.linl ...

  10. PL Quark

    ... //////////// // PL may be used in cases where there is no PLx implementation // Pseg used for pitch curve, linear interpolation ( p = Pbind ( \midinote , Pseg ( PL ( \p ), PL ( \d ), \lin , inf ), \dur , 0.1 ); ~p = Pshuf ((50..75)); ~d = 0 ...

1 2 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow