Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (317) Code (69) Doc (87) Help (34) Quark (127) SCDoc ↗ Forum ↗ Google ↗
  1. Republic Quark

    ... es to random participants: ( Pdef ( \x , Pbind ( \instrument , \xxx , \server , Pfunc { r.servers.choose } .trace, \zzf , Pseq ([8700, 800, 720], inf ), \mod , Pwhite (0.1, 0.7, inf ), \dur , Prand ([0.3, 0.5, Pn (0.04, 5)], inf ) ) ).play ...

  2. PLbindef Quark

    ... , PLseq ([0, 0, 1, 2]), // echo introduces delay, so do delay if no echo \lag , Pfunc { |e| e.fxo.asArray.includes(1).if { 0 }{ 0.2 } }, \a , 0.1, \att , 0.01, \rel , 0.1, \cd , Pkey ( \att )+ Pkey ( \rel ) + 0.001 ); PLbindef ( \echo , \fx ...

  3. startup01-events Quark

    ... t, delta and sustain will have the same value ~sustain = Pkey(\delta); ~synth = Pfunc({ ~objects.keys.choose }); // when you clone, if you need extra preparation, do ~userpreps = ~userpreps.copy.add({ ... }); ~userpreps = List.new; // chuck ...

  4. pmini Quark

    ... p Example: Pbind( [\coin, \delta, \dur, \str, \num], Pmini("1 2 3 4"), \degree, Pfunc({ |e| if(e.coin.coin) { e.str.asInteger } { \rest } }), ) */ Pmini { *new { |mini_notation| ^JSMN.pmini(mini_notation) } } // (Pm)ini(b)ind // // example: ...

  5. Waveshaping Synthesis GUI Demo 2 by bruno (Bruno Ruviaro) Code

    ... , \dist, Pseq([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8], inf), \transFunc, Pfunc({b}); ).collect({arg event; {o.valueAction_(event[\dist])}.defer; event}); }); // end of block

  6. drum-samples Quark

    ... witch1(~drums.collect(_.time), Pkey(\bufIndex)), \instrument, Pdict( ~instrMap, Pfunc { |ev| ev[\bufnum].numChannels }, inf ) ) }, initDrumSelector: { ~drumSelector = Pswitch1( ~drums.collect { |thing| var pd = thing[\postDefaults]; if(pd.n ...

  7. Scale Doc

    ... egree, Pseq([0, 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 0, \rest], inf), \scale, Pfunc({ a }, inf), \dur, 0.25 ); q = p.play; }) ) // change scale a = Scale.phrygian; // change tuning a.tuning_(\just); // can also set tuning at creation time ...

  8. README Quark

    ... x = 0; starty = 0; baseFreq = 440; Pbind( \instrument, \sine, \amp, 0.3, \freq, Pfunc({ var starts, result; orientation = orientation.not; starts = dia.d2Pivot(startx, starty, orientation); startx = starts.first; starty = starts.last; resul ...

  9. sStream Quark

    ... 0, \sustain, Pdefn(\sStream_lvSustain), \scale, Pdefn(\sStream_lvScale), \note, Pfunc({|ev| switch(lvPitchesOnButtonSpec.map(lvPitchesOnButtonElement.value).asInteger, 0, {ev.note.nearestInScale(ev.scale)}, //off 1, {ev.pitches}, //on 2, {[ ...

  10. MxCable Quark

    ... c and: {cable.outlet.spec.notNil}, { stream = streamable.asStream; streamable = Pfunc({ arg inval; var v; v = stream.next(inval); cable.map(v) }, { stream.reset }); }); jack.source = streamable.debug("set stream"); ~connected = true; }; MxC ...

prev 21 22 23 24 25 26 27 28 29 30 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow