-
... iew.bounds, 10@10, 20@5 ); 16.do{ Slider2D ( w.view,80@80 ).background_( Color .rand ) }; ) You can also write: ( w = Window .new.front; w.addFlowLayout( 10@10, 20@5 ); // a shortcut method, see SCContainerView 16.do{ Slider2D ( w.view,80@8 ...
-
Rand uniform distribution single random float value ugen Rand(lo, hi) Generates a single random float value in uniform distribution from lo to hi. It generates this when the SynthDef first starts playing, and remains fixed for the duration ...
-
... lays at (50, 0) b = Slider2D (c, Rect (100,100,100,100)); c.background = Color .rand; w.front; ) c.bounds_( Rect (100,0,300,300)); // contents adust since coords are relative c.resize_(6); // contents adust since coords are relative Keydown ...
-
... responds by answering a new instance of class BinaryOpUGen which has the two operands as inputs. see also: UGen , Pattern , Function Unary Messages: All of the following messages send the message composeUnaryOp to the receiver with the unar ...
-
... sPlug .for(z); m = { Mix ( SinOsc .ar(a.kr(16), 0, 0.1)) }.play; z.setn( Array .rand(16, 300, 320).put(16.rand, rrand(500, 1000))); z.setn( Array .rand(16, 300, 320).put(16.rand, rrand(500, 1000))); z.setn( Array .rand(16, 300, 320).put(16. ...
-
... num = f.bufnum; v= CompositeView (w, Rect (400,10,380,380)).background_( Color .rand(0.7)); v.decorator = n = FlowLayout (v.bounds, margin: 0@0, gap: 5@5); a = StaticText (v, Rect (20, 70, 90, 20)).string_( " xZoom = 1" ).background_( Color ...
-
... // building new synths every 2 seconds ( { loop({ play({ var mod = SinOsc .kr( Rand (0.1, 0.9), 0, Rand (5, 20)); Pan2 .ar( DynKlang .ar(`[ Array .rand(12, 200.0, 2000.0), 1, mod ]), 1.0.rand) * EnvGen .kr( Env .sine(4), 1, 0.02, doneActio ...
-
... The New GENDYN Program. Computer Music Journal 24:2, pp 31-38. Technical notes: random walk is of the amplitude and time delta, not the amp and time directly. The amplitude step random walk uses a lehmer style number generator whose paramet ...
-
... ter point intervals and the amplitudes. In yet another, just have one point and random walk its amplitude and duration based on the probability distribution. In this implementation I allow the user to initialise a certain number of memory p ...
-
... { var freq, numparts; numparts = 50; freq = SinOsc .kr( Array .fill(numparts, { Rand (0.05, 0.2)}), Array .fill(numparts, { Rand (0, 1.0)})).range(1000, 3000); LeakDC .ar( Pan2 .ar( Pluck .ar( WhiteNoise .ar(0.1).dup(numparts), Impulse .kr( ...