Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... t embedInStream { |inval| this.value.embedInStream(inval); ^inval } asStream { ^Pfunc({ |inval| this.value }).asStream } // UGen support updateBus { bus !? {bus.setn(this.value.asArray)}; } initBus {|server| server = server ?? { Server.defa ...

  2. 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 ...

  3. 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 ...

  4. 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 ...

  5. 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 ...

  6. 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: ...

  7. 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 ...

  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 11 12 13 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow