Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

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

  2. Sync-Async Doc

    ... once produces the error "FAILURE /s_new SynthDef not found" ( var name; name = "Rand-SynthDef" ++ 400.0.rand; // use a random name to ensure it's not already loaded SynthDef(name, { arg out=0; Out.ar(out, PinkNoise.ar(0.1)) }).send(s); Synt ...

  3. KDTree Doc

    ... MAL entropy of anything with the same range (here 0 to 1): ~tree = KDTree({[1.0.rand, 1.0.rand]}.dup(1000)); ~tree.entropyNN; // The following should have a lower entropy than the above: KDTree({[1.0.linrand, 1.0.linrand]}.dup(1000)).entrop ...

  4. Spawning Help

    ... ; // SynthDef-play returns a Synth object. ) // then do this ( SynthDef ( "help-Rand" , { arg out=0; Out .ar(out, FSinOsc .ar( Rand (200.0, 400.0), // frequency between 200 and 400 Hz 0, Line .kr(0.2, 0, 1, doneAction:2)) // frees itself ) ...

  5. VoicerSequencer Quark

    ... eq .asSpec; q = VoicerSequencer (v, Pseq ([57, 60, 62, 64, 67].midicps, inf ), Prand ([ Pseq ([0.20], 20) /*, Pseq([0.5], 1)*/ ], inf ), nil , // use durations as lengths [ \ffreq , Pfunc ({ f.map(0.5.rand + 0.5)}), \pan , Pfunc ({ 1.0.rand ...

  6. VoicerSequencer Quark

    ... eq .asSpec; q = VoicerSequencer (v, Pseq ([57, 60, 62, 64, 67].midicps, inf ), Prand ([ Pseq ([0.20], 20) /*, Pseq([0.5], 1)*/ ], inf ), nil , // use durations as lengths [ \ffreq , Pfunc ({ f.map(0.5.rand + 0.5)}), \pan , Pfunc ({ 1.0.rand ...

  7. CtkNote Doc

    ... = BPF.ar(WhiteNoise.ar(amp), freq, 0.01, amp * envgen); Out.ar(0, Pan2.ar(src, Rand(-1.0, 1.0))); }) ); ⧉ ✔ Real-time uses // show the args a.args; // create a new instance of CtkNote based on this prototype b = a.note(1.0); // set values ...

  8. BoidsND Quark

    ... = velSum/numBoids; } prFillBoidList {|num| num.do{ var boid; boid = BoidUnitND.rand(bounds, centerInstinct, innerDistance, matchVelocity, minSpace, workingMaxVelocity, sd); boidList.add(boid); // add it to the list }; } addBoid {|initPos| ...

  9. Sync-Async Help

    ... once produces the error "FAILURE /s_new SynthDef not found" ( var name; name = "Rand-SynthDef" ++ 400.0.rand; // use a random name to ensure it's not already loaded SynthDef (name, { arg out=0; Out .ar(out, PinkNoise .ar(0.1)) }).send(s); S ...

  10. FlowView Doc

    ... ActionButton(g, "a"); GUI.slider.new(g, Rect(0, 0, 100, 100)).background_(Color.rand); }).background_(Color.black); // shrinks to fit the contents afterwards ) ⧉ ✔ Arguments: func (describe argument here) bounds (describe argument here) . c ...

prev 91 92 93 94 95 96 97 98 99 100 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow