Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (86) Code (9) Doc (36) Help (17) Quark (24) SCDoc ↗ Forum ↗ Google ↗
  1. linrand Quark

    ArrayGeneratorDef( \linrand, { |f, n = 1| var range; range = f.get( \range ); thisThread.randSeed = f.get( \seed ); n.collect({ |i| 1.0.linrand.linlin(0,1,*range); }); }, [ \range, [0.0,1.0], \seed, 12345 ], { |f, obj| [ \range, if( obj.min ...

  2. random_value Quark

    ... = 'white'| switch( type, \white, { range[0] rrand: range[1]; }, \linear, { 1.0.linrand.linlin(0,1,*range); }, \invlinear, { 1.0.linrand.linlin(0,1,range[1], range[0]) }, \bilinear, { 1.0.bilinrand.linlin(-1,1,*range); }, \mean, { 2.collect ...

  3. random_value Quark

    ... = 'white'| switch( type, \white, { range[0] rrand: range[1]; }, \linear, { 1.0.linrand.linlin(0,1,*range); }, \invlinear, { 1.0.linrand.linlin(0,1,range[1], range[0]) }, \bilinear, { 1.0.bilinrand.linlin(-1,1,*range); }, \mean, { 2.collect ...

  4. 174-springs_interconnected Quark

    ... .dup(n); sprs= objs.collect{|x| objs.collect{|y| if(x!=y, { RedSpring(x, y, 0.2.linrand, 1.0.linrand, 200.rrand(300)); }); }.select{|x| x.notNil}; }.flat; syns= {Synth(\imp)}.dup(n); //--loop w.draw{ //--render Pen.smoothing= true; Pen.stro ...

  5. nameOfUnaryOpSpecialIndex Quark

    ... in, \Cos, \Tan, \ArcSin, \ArcCos, \ArcTan, \SinH, \CosH, \TanH, \Rand, \Rand2, \LinRand, \BiLinRand, \Sum3Rand, \Distort, \SoftClip, \Coin, \DigitValue, \Silence, \Thru, \RectWindow, \HanWindow, \WelchWindow, \TriWindow, \Ramp, \SCurve].at( ...

  6. sFiles Quark

    ... {|img| Pen.fillColor= Color.yellow(0.3, 0.15); 100.do{|i| Pen.fillOval(Rect(400.linrand, 400.linrand, 50, 50)); }; }); win.view.setBackgroundImage(backgroundImage, 10, 0.2); if(SGUI.currentTheme!=\dark, { win.view.children.select{|v| v.isKi ...

  7. KDTree Quark

    ... yNN; // The following should have a lower entropy than the above: KDTree ({[1.0.linrand, 1.0.linrand]}.dup(1000)).entropyNN; // Even lower entropy: KDTree ({[1.0.linrand.squared, 1.0.linrand.squared]}.dup(1000)).entropyNN; // For a 1D unifo ...

  8. KDTree Quark

    ... yNN; // The following should have a lower entropy than the above: KDTree ({[1.0.linrand, 1.0.linrand]}.dup(1000)).entropyNN; // Even lower entropy: KDTree ({[1.0.linrand.squared, 1.0.linrand.squared]}.dup(1000)).entropyNN; // For a 1D unifo ...

  9. Integer.ext Quark

    ... "Tan", "ArcSin", "ArcCos", "ArcTan", "SinH", "CosH", "TanH", "Rand_", "Rand2", "LinRand_", "BiLinRand", "Sum3Rand", "Distort", "SoftClip", "Coin", "DigitValue", "Silence", "Thru", "RectWindow", "HanWindow", "WelchWindow", "TriWindow", "Ramp ...

  10. 071-lsystem_grow Quark

    ... h to draw lsys= RedLSystem("F", ($F: "F[+F--F]+F".scramble)); lplot.noise= 0.75.linrand; lplot.theta= 20.0.rand2; lplot.lsystem= lsys; lsys.reset; cnt= -1; }); }); lsys.next; cnt= cnt+1; //--render Pen.strokeColor= Color.white; Pen.translat ...

1 2 3 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow