-
... lues near 'this' prob2: determines the probability of values near 'val2' */ betarand { arg val2=1, prob1=1, prob2=1; var invProb1, invProb2, temp, sum; invProb1 = 1/prob1; invProb2 = 1/prob2; sum = 2; while({ sum > 1; },{ temp = 1.0.rand ** ...
-
... e seperate delay time for each channel Array.fill( numCh, { arg i; maxDelayTime.rand }) },{ maxDelayTime.rand }), decayTime ) }); ^out * mul + add } }
-
... Ndef(\lv, { Mix( LeakDC.ar( LotkaVolterra.ar(SampleRate.ir*0.5, a: {LFNoise2.ar(Rand(0.000174, 0.00174)).range(0.49, 0.5)}!3, b: \b.kr(1.5, 0.1), c: {LFNoise2.ar(Rand(0.000174, 0.00174)).range(2, 4)}!4, // \c.kr(0.5, 0.1), a: {LFNoise2.ar(R ...
-
... er.value; }; ez.setColors(background: bgColors[i%2 + 2]); } ) ///////////// set random values /////////// Ndef(\comparMatrix).setn(\decays, {1.0.rand}!10) Ndef(\comparMatrix).setn(\freqs, {200.rand}!10) Ndef(\comparMatrix).setn(\amps, {1.0. ...
-
... 333, 1.5,1.7,2.5*0.5] )), SinOsc.ar(0.1 * [0.25, 2, 0.5]) ) * (LFPulse.ar(1.3, {Rand().round(0.2)}!8, 0.3)+LFPulse.ar(1.3*0.49, {Rand().round(0.2)}!8, 0.3)); SplayAz.ar(8, src, //LFNoise0.kr(0.5).range(0.1, 1), center: LFSaw.ar(\round.kr(10 ...
-
... * numdims, numinputchannels); if(init.notNil){ Task{ server.sync; init.switch( \rand, { this.initBufRand(buf) }, \gridrand, { this.initBufGridRand(buf, netsize, numdims) } ) }.play(AppClock); }; ^buf; } *initBufRand { |buf, minval = -1, max ...
-
SOMTrain .trainFromFile SOMTrain .trainFromFile(path, init= \gridrand , numdims=2, netsize=10, numruns=1, server, action, nhood=0.5, initweight=1) Here 's how to train the SOM from a data file. The data file should be an audio-format file ( ...
-
... .keys } *get { arg preset; ^table[preset] } *at { arg preset; ^table[preset] } *rand { ^table.choose } }
-
BBlockerProgram { classvar <instructions, descs; var <program, <>fillUpRandom = false; var collection; *new {|program| ^super.new.init(program) } init {|argProgram| this.class.initStates; program = argProgram.asArray; } // search in descs * ...
-
... B2A.ar(w, x, y, z); #a, b, c, d = DelayN.ar([a, b, c, d], 0.001, Array.fill(4, {Rand.new(0.0, 0.001)})); #ar, al = GVerb.ar(a, roomsize, revtime, damping, inputbw, 45, drylevel, earlyreflevel, taillevel, maxroomsize, mul); #br, bl = GVerb.a ...