-
... From superclass: LFNoise0 Arguments: freq Approximate rate at which to generate random values. mul Output will be multiplied by this value. add This value will be added to the output. Inherited class methods Instance Methods Inherited insta ...
-
... e: the same signal on all channels, so the peaks will always line up, and fully random phase: different noise signals on all channels, where the peaks will be statistically very unlikely to ever line up. Most musical signals are somewhere b ...
-
... . Private methods . keyAction . makeKeyAction . makeKeyUpAction Examples // the random keyboard: ( s.latency = nil; // make sure we respond quickly thisThread.randSeed = 2008; "qwertzuiopasdfghjklyxcvbnm".do { |char| var note = (midinote: r ...
-
... // make some notes into triads Pbind(*[ctranspose: Pwhite(-0.1, 0.1)]), // add random detuning to notes Pbind(*[\scale, Scale.minor]), // alter the scale Pn(Pseq([p, (type: \rest, dur: 1.0)])), // repeat the pattern after a 1 second pause ...
-
... res if example if ( [false, true].choose, // Boolean expression (chooses one at random) { "expression was true".postln }, // true function { "expression was false".postln } // false function ) ( var a = 1, z; z = if (a < 5, { 100 },{ 200 }) ...
-
... tion that is called for each next stream value. // make a stream that returns a random number a = FuncStream({ 1.0.rand }); a.next; ⧉ ✔ It uses Function: -inEnvir to statically bind the function call to the environment in which the FuncStre ...
-
... L.ar(Saw.ar(MouseX.kr(440,1760),0.5),c.bufnum, d.bufnum, 1.0),1000,0.1)}.play //random buffers; this code may lead to repeated indices, but shouldn't affect the result (will just add to sum) ( a=Array.fill(10,{[rrand(0,50),0.2.rand2, rrand( ...
-
... Dict.size; // test switching gui between pages: // turn all knobs in group 0 to random value k.elAt(\kn, 0).do(_.value_(1.0.rand)); // now switch to scene 1 - all knobs are at 0 g.pagesSwitch.valueAction_(1); // turn all knobs in group 1 to ...
-
... a = 2048; s = Server.local; // kernel buffer g = Buffer.alloc(s, a, 1); ) ( // random impulse response g.set(0, 1.0); 100.do({ |i| g.set(a.rand, 1.0.rand) }); { var input, kernel; input = SoundIn.ar(0); kernel = PlayBuf.ar(1, g.bufnum, Buf ...
-
... rns control to the parent upon nil from either branch. Pseed(randSeed, pattern) Random number generators depend on seed values; setting a specific seed produces a repeatable stream of pseudorandom numbers. Pseed sets the random seed before ...