Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1643) Code (228) Doc (514) Help (194) Quark (697) Plugin (10) SCDoc ↗ Forum ↗ Google ↗
  1. Syntax-Shortcuts Doc

    ... ; x < 2 } { |x| x < 2 } { arg x = 123; x < 2 } { |x = 123| x < 2 } { arg x = 10.rand; x < 2 } { |x = (10.rand)| x < 2 } or {|x(10.rand)| x < 2 } NOTE: When using the new || syntax, the default value needs to be enclosed in parenthesis if it ...

  2. GMGridButton Doc

    ... 12)); }); allFreqs = allFreqs.midicps; 7.do({ |octave| var octaveColor = Color.rand; 7.do({ |note| states.add(( string: names[note] ++ (octave + 1).asString, color: octaveColor, fontColor: Color.black )); }); }); keyboard = GMGridButton() ...

  3. Vowel-example Quark

    ... freqs,amps,amps], Decay .ar( Impulse .ar( exp(1)/5.0 ), SinOsc .kr( pi/9.0, 1.0.rand ).range(0.05,0.7) ) ) * EnvGen .kr( Env .new([-40,-20, -30,-40].dbamp, [2, 1, 2].normalizeSum, 'exp' ), timeScale: dur, levelScale: 0.5, doneAction: 2 ).ta ...

  4. RedEffectsRackGUI Quark

    ... i][j]}}}, {gui.do{|x| x.do{|y, j| if(j==0 or:{j%2==1}, {y.view.valueAction= 1.0.rand})}}}, {gui.do{|x| x.do{|y, j| if(j==0 or:{j%2==1}, {if(0.3.coin, {y.view.valueAction= 1.0.rand})})}}}, {gui.do{|x| x.do{|y, j| if(j==0 or:{j%2==1}, {y.view ...

  5. SimpleMIDIFile Doc

    ... change from default to something useful ((0,(1/8)..5)).do({ |starttime| // add random notes m.addNote( 36 + 50.rand, 32 + 96.rand, starttime, [0.1,0.05].choose, 127, track: 1 ) }); ((0,(1/4)..5)).do({ |starttime| // add random notes to nex ...

  6. PdefAllGui Doc

    ... |i| i.postln; 0.5.wait } }); Pdef(\b, { |e| 100.do { |i| Pdef(\a).set(\otto, 8.rand); exprand(0.1, 3.0).wait } }); t = PdefAllGui(8); ) // if you have too many Pdefs, an ezscroller lets you select "abcdefghijk".do { |ch| Pdef(ch.asSymbol) ...

  7. A simple drum machine by coreyker (coreyker) Code

    ... arg amp=0.5; { var amp_env, phase_env, phase, freq, dur; freq = 50.rand + 40; dur = 0.25; amp_env = EnvGen.ar(Env.perc(1e-6,dur), doneAction:2); phase_env = EnvGen.ar(Env.perc(1e-6,0.125)); phase = SinOsc.ar(2 ...

  8. TdefAllGui Doc

    ... |i| i.postln; 0.5.wait } }); Tdef(\b, { |e| 100.do { |i| Tdef(\a).set(\otto, 8.rand); exprand(0.1, 3.0).wait } }); t = TdefAllGui(8); ) // if you have too many Tdefs, an ezscroller lets you select "abcdefghijk".do { |ch| Tdef(ch.asSymbol) ...

  9. SharedProxySpace Quark

    ... // play locally // play sine tone with freq dependant on ensemble, but a little random. ~out = { SinOsc .ar(440 + (300 * ~ensemble.ar) + Rand (0, 10), 0, 0.1) }; ~ensemble = 1; // tune up a bit; ~ensemble = { Line .ar(0, 2, 10) }; // Henry ...

  10. scpodcast_harp1_synthdef Quark

    ... ,1], [3, 0.0001]), sweeptrig); trig = Dust.kr(pluckratefactor * (LFNoise2.kr(ExpRand(0.1, 0.4)).range(1, LFNoise2.kr(ExpRand(0.02, 0.08)).exprange(0.3, 20)) * // Boost the amount of triggers when we're doing a "sweep" (EnvGen.kr(Env.new([1, ...

prev 111 112 113 114 115 116 117 118 119 120 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow