-
SynthDef( \many_sinosc_1, { var freqs = 1000.collect{|n| n + 1.0.rand } * 10; var oscs = freqs.collect{|f| SinOsc.ar(freq: f) }; Out.ar(0, oscs.mean) })
-
SynthDef( \many_saw_1, { var freqs = 700.collect{|n| n + 1.0.rand } * 10; var oscs = freqs.collect{|f| Saw.ar(freq: f) }; Out.ar(0, oscs.mean) })
-
... 2D[0, 0], RedVector2D[0, 0], 1.5, 10); obj2= RedObject(world, RedVector2D[width.rand, height.rand], RedVector2D[0, 0], RedVector2D[0, 0], 2, 10); trg= RedObject(world, RedVector2D[width*0.5, height*0.5], RedVector2D[0, 0], RedVector2D[0, 0] ...
-
... al: distribution of frequencies: 0: linear, 1: exponential variation: amount of random variation. 0: no variation, 0.5: linear distribution, 1: full random. amp: range of random amplitudes ringTime: range of random ring times. Can not be mo ...
-
... al: distribution of frequencies: 0: linear, 1: exponential variation: amount of random variation. 0: no variation, 0.5: linear distribution, 1: full random. amp: range of random amplitudes ringTime: range of random ring times. Can not be mo ...
-
... ays_1, { var src, delay; src = WhiteNoise.ar; Out.ar(0, 250.collect{|i| delay = Rand(0.01, 3.0); [DelayN, DelayL, DelayC].wrapAt(i).ar(src, delay, delay) }.mean) })
-
... maxvel,damp //--objects objs= { var mass= 2; RedObject(world, RedVector2D[width.rand, height.rand], RedVector2D[0, 0], RedVector2D[0, 0], mass, mass); }.dup(n); sprs= objs.collect{|x| objs.collect{|y| if(x!=y and:{0.25.coin}, { RedSpring(x, ...
-
... assignments ++ centroids.size; centroids = centroids ++ [datum]; } } // Choose random centroids by randomly resampling from the data-derived marginals reset { k.do{|i| centroids[i] = data[0].size.collect{|d| data.choose[d]} }; data.do{|dat ...
-
... umIns = 2; var numOuts = 0; var bounds = Rect((Window.screenBounds.width - 250).rand, (Window.screenBounds.width - 90).rand, 250, 90); var name = "HrDAC"; ^super.new(argParentApp, name, argIdent, argUniqueID, argExtraArgs, bounds, numIns, n ...
-
... height], wgrav, 99, 0); //dim,grav,maxvel,damp //--objects objs= { var mass= 1.rrand(10); RedObject(world, RedVector2D[width.rand, height.rand], RedVector2D[0, 0], RedVector2D[0, 0], mass, mass); }.dup(n); sprs= objs.collect{|x| objs.collec ...