-
... kr(In.kr(controlInBus, 6)); freqs = [800, 1071, 1153, 1723] * Lag.kr(xy[0].linlin(xy[2],xy[3],0.5,2), 0.1); /* MouseX.kr(0.5, 2, 1); */ ringtimes = [1, 1, 1, 1] * Lag.kr(xy[1].linlin(xy[4], xy[5], 0.1, 10), 0.1); /* MouseY.kr(0.1, 1 ...
-
... { | index | Pen.strokeColor_( hsv_to_color.value( [ index.linlin( 0, view.bounds.height, 0, 360 ), 1, 1 ]; ); ); Pen.moveTo( Point( 0, index ) ); ...
-
Re: An FM Matrix Synth with 1to1 feedback -- nanokontrol NNdef version by miguel-negrao (miguel-negrao) Code
... MKtl('nnkn0').elements; var freqs = k[\kn][0][..2].collect{ |e| e.enIn.enKr.linlin(0,1,20,5000) }; var amps = k[\kn][0][3..5].collect{ |e| e.enIn.enKr }; var modIndex = k[\sl][0].collect{ |e| e.enIn.enKr.linlin(0,1,0.0,4.0) }.clump( ...
-
... ("alarm"++i).asSymbol).play(fadeTime: ~fadeTime).set(\amp, 7/~num).postln; i.linlin(0, ~num-1, ~fadeTime*2, ~fadeTime/2).wait; }; }).play; ) //--stop alarms ( ~task.stop; ~task= Task({ ~num.do{|i| Ndef(("alarm"++i).asSym ...
-
... { | index | Pen.strokeColor_( hsv_to_color.value( [ index.linlin( 0, ( view.bounds.height - ( margin * 2 ) ), 0, 360 ), hsv[1], hsv[2] ]; ); ); ...
-
... .moveTo(pt); pt = Point(x * (width / sampPts), sin(x * freq / sampPts * 2pi).linlin(-1, 1, height, 0)); Pen.lineTo(pt).stroke .fillRect(Rect.aboutPoint(pt, 3, 3)); }; Pen.color_(sinColor) .moveTo(Point(0, height/2)); ...
-
... 1 ) * -1) / delaywindow; window = numDelays.collect{|i| phase = i.linlin(0, numDelays+1, 0, 2pi); Osc.kr(buf, phasorfreq, phase) ; }; env = EnvGen.kr(Env.asr(\attack.kr(0.01), 1, \release.kr(0.01)), gate: \g ...
-
... , val.linexp(1,127,0.02,0.3), //velocity detection \gate, 1, \bend, ~bend.linlin(0,16383,-2,2), \basedur, ~mod.linlin(0,127,0.07,2), \detune, 0.025, \dens, 12, \out, ~revBus ], ~src ); }); MIDIdef.noteOff(\off, { ...
-
... Change freq //that.sy.set(\freq, sqrt(that.ox.squared + that.ox.squared).linlin(0,sqrt(350.squared * 2),50,350)); that.sy.set(\freq, that.ox.linlin(0,350,10,550)); that.sy.set(\mod_freq, that.oy.linlin(0,350,10,550)); ...
-
... g, { | out=0, freq=440, xval, yval | var sig = 0.05*(VarSaw.ar(freq*yval.linlin(0,350,2,1), width:xval.linlin(0,350,0.2,0.9))); var env = EnvGen.ar(Env.perc(0.1),doneAction:2); sig = env*sig; Out.ar(out, sig!2); }).add; ...