-
... ootFreq = 440, stepRatios=#[1.5, 2], loFreqBound = 20, hiFreqBound = 20000; var index, octaveUp, octaveDown, divs, scaleFreqs; var current, octave; divs = stepRatios.size; if(stepRatios[divs-1] <= 1.001, { ^nil }); index = -1; octaveUp = st ...
-
... nOf, but with weights aswAddendsOf{ arg summation, weights; var result, values, index; result = this.class.new; values = this.copy; weights = weights.normalizeSum; while({ summation > 0 },{ index = Array.series(values.size, 0, 1).wchoose(we ...
-
AudioMSG : UGen { *ar { arg in, index=0pi, mul = 1.0, add=0.0; // ^SinOsc.ar( 0, ( in*0.5pi ) + SinOsc.ar( 0, in*2pi, index ), mul, add ) ^this.multiNew('audio', in, index).madd(mul, add); } } //(in*0.5pi) + (in*2pi*index) /* s = Server.int ...
-
... ain : JoshGrain { *ar { arg trigger = 0, dur = 1, carfreq = 440, modfreq = 200, index = 1, mul = 1, add = 0; ^this.multiNew('audio', trigger, dur, carfreq, modfreq, index).madd(mul, add); } } FMGrainB : JoshGrain { *ar { arg trigger = 0, du ...
-
... { arg file; channels.do({ arg output; output.writeOutputSpec(file); }); } synthIndex_ { arg index; synthIndex = index; channels.do({ arg output; output.synthIndex_(index); }); } } Dneuromodule : MultiOutDemandUGen { *new { |numChannels, th ...
-
... le).edit /////////////// s.reboot Ndef(\tiickle, { }).play Ndef(\tiickle, { var index = 0; Bend({ |original| [original, original.isNumber, index].postln; if(original.isNumber) { original = NamedControl.kr("bend_"++index, original); index = ...
-
... , ~dataspacelength, ~dataspacechanwidth); ~data = ~dataspacechanwidth.collect{ |index| ((0..~dataspacelength)*2*pi/~dataspacelength).sin * ((8 * index/~dataspacechanwidth).sin) } //~data.heatMap(title: "training data (array)"); // You need ...
-
... Date.seed, 0 ).calcReturns } // randomly choose element from region choose{ var index, returnItem; index = Array.newClear(regionLength); regionLength.do({ arg i; index[i] = (regionStart + i) % phrase.size; }); pos = index.choose; if(loopRet ...
-
... 00, 800, 1600, 3200, 6400, 12800]); Out .ar(0, in * 0.1); powers.collect{ |pow, index| pow.poll(label: "band" +index)}; powers.sum.poll(label: "sum" ); FFTPower .kr(chain).poll(label: "pow" ); }.play(s); ) x.free; In this next example we cr ...
-
... = maxval.dup(buf.numChannels) }; buf.loadCollection({ buf.numChannels.collect{|index| 1.0.rand.linlin(0, 1, minval[index], maxval[index]) } }.dup(buf.numFrames).flat); } // spinmatrix is an array of buf.numChannels vectors, each of which h ...