-
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 ...
-
... = '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 ...
-
... = '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 ...
-
... .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 ...
-
... 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( ...
-
... {|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 ...
-
... 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 ...
-
... 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 ...
-
... "Tan", "ArcSin", "ArcCos", "ArcTan", "SinH", "CosH", "TanH", "Rand_", "Rand2", "LinRand_", "BiLinRand", "Sum3Rand", "Distort", "SoftClip", "Coin", "DigitValue", "Silence", "Thru", "RectWindow", "HanWindow", "WelchWindow", "TriWindow", "Ramp ...
-
... 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 ...