-
... c .ar(freq) * 0.1 }.play; ) // audio rate ( { var a, freq, trig; a = Dseq ({ 10.rand } ! 32, inf ); trig = Impulse .ar( MouseX .kr(1, 10000, 1)); freq = Demand .ar(trig, 0, a) * 30 + 340; SinOsc .ar(freq) * 0.1 }.play; )
-
... at .at to store anything you like. For example: c.at[\exampleVariable] = 10000.rand; // Get the value c.at[\exampleVariable];
-
... / example ( var a, b, c; a = { [100, 200, 300].choose }; // a Function b = { 10.rand + 1 }; // another Function c = a + b; // c is a Function. c.value.postln; // evaluate c and print the result ) See AbstractFunction for function compositio ...
-
... rund this ( // 2. and then run this t = Task({ ({ var num= b.size.rand; var buf= b[num]; 0.1*Splay.ar(PlayBuf.ar(buf.numChannels, buf, 1, 1, 0, 0)); }.play; ) }); ) ( // 3. Then run this z = Task({ ...
-
... nt.default) Editor.for((type: \instr,instr:"test.makeDef",env:Env.perc,beat: 64.rand,degree: 20.rand)).gui ⧉ ✔ Arguments: object ... args additional arguments are supplied to the purveyor function . editorFor private. this is the handler di ...
-
... hArgsIndices synthDef outClass respawnOnChange stepChildren inputs setInput set rand doesNotUnderstand argNames argNameAt specAt spec rate numChannels indexFromName argFromName loadSubject createArgs defName asSynthDef watchNoncontrols resp ...
-
... r(in, 2).sum; sig = DelayN.ar(sig, 0.03, 0.03); sig = CombN.ar(sig, 0.1, {Rand(0.01,0.099)}!32, dec); sig = SplayAz.ar(2, sig); sig = LPF.ar(sig, lpf); 5.do{sig = AllpassN.ar(sig, 0.1, {Rand(0.01,0.099)}!2, 3)}; sig = LPF. ...
-
NRand NRand(lo, hi, n) Generates a single random float value in a sum of n uniform distributions from lo to hi. n = 1 : uniform distribution - same as Rand n = 2 : triangular distribution n = 3 : smooth hump as n increases, distribution con ...
-
... ("/n_free", 2002); s.quit; w.close;}) // .states_([["Stop ", Color.black, Color.rand],["Stop ", Color.white, Color.red]]) // .keyDownAction_({arg ... args; args.postln; s.sendMsg("/n_free", 2002); s.quit; w.close;}); // w.onClose_({arg ... ...
-
... nv.perc(attackTime: 0, releaseTime: rel, curve: curve).kr(doneAction: 2); mod = Rand(modLo, modHi); snd = PMOsc.ar( carfreq: freq, modfreq: mod * freq, pmindex: env * tone, mul: env * amp ); snd = HPF.ar(snd, freq / 2); snd = Mix.ar(snd) * ...