Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1643) Code (228) Doc (514) Help (194) Quark (697) Plugin (10) SCDoc ↗ Forum ↗ Google ↗
  1. 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 ...

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

  3. BoidsND Doc

    ... = BoidsND(5, 20); // a new flock in five dimensions f.addTarget(Array.fill(5, {rand(200)}), 3); // add a target randomly f.targets[0].postln; // prints Dictionary[ (pos -> RealVector[ 58, 85, 36, 34, 163 ]), (strength -> 3) ] // add anothe ...

  4. MSCDebouncer Doc

    ... the end of a series of events, such as for user input. In the below example, a random amount of time less than one second) passes between each loop, and a function is debounced by 500ms (at least 500ms must pass between the debounce call a ...

  5. TabletSlider2D Doc

    ... 0.5) // initial location of x .y_(1) // initial location of y .knobColor_(Color.rand) .action_({|sl| [\sliderX, sl.x, \sliderY, sl.y].postln; }); t.step_(0.01); n = CompositeView.new(w, 200@300); n.decorator = FlowLayout(n.bounds); v = { |i ...

  6. Font Doc

    ... "; a = StaticText(w, 200@20).string_("The quick drowned fox").background_(Color.rand).align_(\center); b = Button(w, 200@20).states_([["The quick drowned fox"]]).background_(Color.rand); c = PopUpMenu(w, 200@20).items_(["The quick drowned f ...

  7. Understanding-Errors Doc

    ... ll stack to help locate the error. Routine({ var a; a = 5; loop { var b; b = 20.rand; b.postln.ecky_ecky_phtang; // "NI!!!!" a.wait; } }).play; ERROR: Message 'ecky_ecky_phtang' not understood. RECEIVER: Integer 6 ARGS: Instance of Array { ...

  8. GravityGrid Doc

    ... , bufnum , mul: 1.0 , add: 0.0 ) Arguments: reset Restart the moving mass at a random position within the square (k-rate input) rate amount of position update per sample (k-rate) newx kr input to be sampled for new x positions for the movi ...

  9. RedVector Doc

    ... it(5) c.mag a.distance(b) b.distance(c) c.distance(a) a+b c*RedVector[100, 200].rand RedVector2D[320, 240] //this one is hardcoded to 2 dimensions RedVector3D[320, 240, 160] //this one is hardcoded to 3 dimensions a= RedVector[1, 2, 3, 4, 5 ...

  10. Spawning Doc

    ... ay; // 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: Done.freeSelf) // frees ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow