-
... al, etc.), binary (+, -, *, /, **, min, max, etc.) and n-ary (clip, wrap, fold, linlin, linexp, etc.) operators are all valid with patterns. // Random integers, 1-5 Pwhite(1, 5, inf).asStream.nextN(10); // Random integers 1-5, multiplied by ...
-
... f.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 has "numdims" ent ...
-
... {elapsed < env.duration}, { var delayTime = 0.03; var texture = env.at(elapsed).linlin(0, env.levels.maxItem, 1, maxtexture).asInteger; var thisPan = (panenv !? {SSampler.toFlatEnv(panenv).stretch(env.duration).at(elapsed)}) ? pan; var this ...
-
... s: 2, bufnum: buffer, rate: rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(buffer)) ); snd = snd * env; snd = Pan2.ar(snd, panning); Out.ar(0, snd); }).add; SynthDef("hihat", {arg out ...
-
... / (-2.0 * squared(width)))); var gauss = LFGauss.ar(0.1, width, loop: 1); gauss.linlin(min, 1, 0, 1); }.plot(1) ); // range does the same implicitly ( { var width = XLine.kr(0.04, 1.0, 1); LFGauss.ar(0.1, width, loop: 1).range(0, 1); }.plot ...
-
... false) b === a.collection(true) x = a.play(10000 + SinOsc.ar(10)); SinOsc.ar(0).linlin(-1, 1, 10000, 19000)) x.free a.plot(duration: 0.15) // impulse a = BBlockerProgram([\ORG, \NOT, \NOT, \NOP, \NOP, \NOP, \NOP, \NOP, \JMP, 1]); x = a.play ...
-
... 1| view.scale = level*10; } move { |x,y| x = x ? 0; y = y ? x; view.move_([x,y].linlin(-100,100,0,1)); } moveToCenter { view.move_([0.5,0.5]); } object_ { |newPath, active = true| if( object !== newPath ) { object = newPath; this.refresh; i ...
-
... = {arg v, x, y; var binf, nextbinf, sampleNum; sampleNum =winStepArray[x.linlin(0, xs, 0, stepsNum)]; sampleNum= sampleNum + sfSelection[0]; //"Yval: ".post;y.postln; binf =((ys-y)/ys*2048)*sfSampleRate/4096; nextbinf = ( ...
-
... (0, view.bounds.height); freq = binfreqs[((view.bounds.height)-mouseY).round(1).linlin(0, view.bounds.height, frombin*2, tobin*2).floor(1)].round(0.01); } start { this.startruntask } stop { this.stopruntask } } SpectrogramWindow : Spectrogr ...
-
... Buffer.allocConsecutive(12, s, 2048, 1, completionMessage: { |buf, i| var w = i.linlin(0, b.size-1, 0.16, 0.8); w = [w, 1.0 - w]; buf.sine1Msg(Array.fill(20, { #[0, 1].wchoose(w) }).putFirst(1)) }); out = /*MonoPorta*/Voicer(2, \fmBass, [cb ...