Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... etView(bounds:500@50, contextId: "mycontext").front().actionFetchPreset_({ 1000.rand.postln; }).actionLoadPreset_({ |preset| preset.postln }); */ SCMPresetView : View { classvar eventPresetsChanged, <>nameToPositionMap, presets, presetNames ...

  2. WFSPointArray Quark

    ... er side, offset includes z ^super.with(*Array.makeRect(width, div, offset)); } *rand { arg nPoints = 10, radius = 1.0, rSeed; //simple 2D rand var routine; routine = Routine({ loop { WFSPoint.rand(radius).yield } }); if( rSeed.notNil ) { ro ...

  3. ScatterView Quark

    ... wing or Cocoa SwingOSC .default.boot GUI .swing ( var data = 1000.collect{ [1.0.rand, exprand(0.01, 1)]}; w = GUI .window.new(bounds: Rect (40, 40, 800, 800)).front; a = ScatterView (w, Rect (10, 10, 760, 760), data, [0,1].asSpec, [0,1].asS ...

  4. Vector Quark

    ... *canonB { |i,size| ^this.newFrom(size.collect { |j| (i == j).binaryValue }) } *rand { |size = 2, lo = 0.0, hi = 1.0| ^this.newFrom(size.collect { rrand(lo, hi) }) } *rand2D { |xlo, xhi, ylo, yhi| ^this.newFrom([rrand(xlo, xhi), rrand(ylo, ...

  5. SQPusher Quark

    ... ing function really sqchance= (sqweights1.at(quaver))*(activity.value); temp=(2.rand)+1; if(beatpos== 0.5, {temp=1}); temp2= if(sqchance.coin, {Array.fill(temp*2,{0.25})},{Array.fill(temp,{0.5})}); cutsequence.add(temp2); done=(temp2.sum)+d ...

  6. MView Quark

    ... var currVals = this.getUni, jump; if (currVals.size < 1) { this.setUni(nil, 1.0.rand); } { jump = rrand(currVals.minItem.neg, 1-currVals.maxItem); this.shiftRange(jump, \stop) }; this.doAction }, $R: { |uv, mod| this.setUni(nil, this.makeVa ...

  7. BoxGrid Quark

    ... ostln;}) .nodeUpAction_({ arg nodeloc; nodeloc.postln}); 30.do({ a.setState_(24.rand, 8.rand, 1); // column, row, state }); }); ) b = a.getNodeStates // clear the grid a.clearGrid // set it back to previous state a.setNodeStates_(b) // draw ...

  8. InfluxKtlGui Quark

    ... angle",{ object.disentangle(0.3); }], ["entangle",{ object.entangle(0.3); }], ["RANDOM",{ object.rand(1.0); }] ].collect { |labFunc| Button(leftButtonV, Rect(0, 0, butWid, butH)) .states_([[labFunc[0]]]).action_(labFunc[1]); }; StaticText(l ...

  9. InfluxKtlGui Quark

    ... angle",{ object.disentangle(0.3); }], ["entangle",{ object.entangle(0.3); }], ["RANDOM",{ object.rand(1.0); }] ].collect { |labFunc| Button(leftButtonV, Rect(0, 0, butWid, butH)) .states_([[labFunc[0]]]).action_(labFunc[1]); }; StaticText(l ...

  10. Influx Quark

    ... isNil) { weights = argWeights ?? { { 0 ! inNames.size } ! outNames.size }; this.rand; } { // add size check here // if (weights.shape == [inNames.size, outNames.size]) weights = argWeights }; } calcOutVals { weights.do { |line, i| var outVa ...

prev 51 52 53 54 55 56 57 58 59 60 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow