-
... sStream; defaultEvent = Event.default; defaultEvent[ \velocity ] = { ~amp.value.linlin(0,maxAmp,1,127,\minmax) }; defaultEvent[ \midinote2 ] = { if( ~freq.isFunction.not ) { ~freq.cpsmidi } { ~midinote.value } }; if( format > 0 ) { defaultE ...
-
... / this.speakerPositions = speakers.collect({|item,i| Spherical(item[0], item[1].linlin(-180, 180, -pi, pi), // item[2].linlin(-180, 180, -pi, pi) ).asCartesian.trunc(0.00000001) }); this.speakerPositions = speakers.collect({|item,i| Spheric ...
-
... es resonance m.elAt(\kn, \turn, 0).action_{|el| Ndef(\piano).set(\res, el.value.linlin(0, 1, 0, 1).postln) }; m.elAt(\kn, 1).action_{|el| Ndef(\piano).set(\ffac, el.value.linexp(0, 1, 0.125, 8).postln) }; ) // now hit one of its keys, or si ...
-
... c: (minval: -64, maxval: 64, asSpec: {|dict| dict }, map: { |spec, val = 0| val.linlin(0, 1, spec.minval, spec.maxval).round.asInteger }, unmap: { |spec, val = 0| val = min(64 - val, val); val.linlin(spec.minval, spec.maxval, 0, 1); }, defa ...
-
... = {|i| var x= i%b.width; var y= i.div(b.width); b.palette[(sin(x/17)*cos(y/48)).linlin(-1, 1, 0, 15).round.asInteger]; }.dup(b.width*b.height); b.plot; ) b.write("~/Desktop/testredbmp4.bmp"); //save it to desktop b= RedBMP.read("~/Desktop/t ...
-
... h more than one argument) to a pattern. Examples of n-ary operators are: blend, linlin, linexp, explin, expexp, clip, fold, wrap. Class Methods Pnaryop. new ( operator , a , arglist ) Arguments: operator operator to be applied a a pattern ( ...
-
... 0 ) * 12).midiratio; rate = rate * \rateScale.kr( 1 ); reverse = \reverse.kr(0).linlin(0,1,1,-1); overlap = \overlap.kr(4); pan = \pan.kr( [ -1,1 ] ); URandSeed.ir(\seed); trigger = TDuty.ar( Dwhite( 0,1 ).linexp( 0,1, 1/timeVar/density, ti ...
-
... var z = field[x][y]; z = f.(z); field[x][y] = z; Pen .color = Color .gray(z.rho.linlin(-100, 100, 1, 0)); Pen .addRect( Rect (x * dx, y * dy, dx, dy) ); Pen .fill } } }; fork({ 6.do { w.refresh; 2.wait } }, AppClock ) )
-
... ty.kr( tempo.reciprocal * Drand((1,4..48), inf), 0, Drand((0..10).linlin(0,10,0,2*pi),inf) )) // not sure ).range(-0.5,5.5), [ // perc BrownNoise.ar(LFNoise2.kr(0.1.exprand(1)).range(0.3,0.75)), Wh ...
-
... PlayBuf.ar(1, bufnum, rate: BufRateScale.kr(bufnum) * rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(bufnum)), loop: loop); sig = BLowPass.ar(sig, Lag.kr(lpassFq, 0.02)); sig = BPF.ar(sig, freq, rq); resonance = DynKlank.ar(`[ [ LFN ...