-
... new(\multi1, { arg msg; //[msg].postln; ~marimba[0].set(\rq, msg[1].linlin(0.0,1.0,0.03,0.007)); ~marimba[0].set(\cf, msg[2].linlin(0.0,1.0,110,880)); }, '/touch1' ); OSCdef.new(\multi2, { arg msg; //[msg].po ...
-
... (\attackTime, {|val, num, chan, src| var attackTime; attackTime = val.linlin(0,127,0,2); ~ctlbus1.set(attackTime); ("attackTime: " ++ attackTime).postln; },2); MIDIdef.cc(\tempo, {|val, num, chan, src| var index; ...
-
... , d, e)).background_(Color.white) ; f = {|v, f2, f1| StaticText(u, Rect(f2.linlin(500, 2500, d, 0), f1.linlin(200, 800, 0, e)-18, 40,40)) .string_(v).font_(Font("Helvetica", 18)) } ; ~vow = ( // no unicode alas \i:[2300 ...
-
... ([0, 1, 1, 0], [0.1, duration, 0.25]), gate: 1, doneAction: 0); var leveler = LinLin.ar(LFTri.ar(duration.reciprocal, 1), -1, 1, -24, 0).dbamp; var sig = HPF.ar( ({ |k| Pan2.ar(({ |i| Pulse.ar( i * k + 2 / (k + 1) * ro ...
-
... white(0.0, 1.0)); attack = LinExp.kr(accent, 0, 1, 0.02, 0.006); ampMod = LinLin.kr(accent, 0, 1, LinLin.kr(accentStrength, 0, 1, -6, -18).dbamp, 0).dbamp; noiseEnv = EnvGen.kr(Env.perc(attack, noiseDecay * TExpRand.kr(0.8, 1.25, t ...
-
... ase, dur, amp; if ( 0.68.coin ){ number = 1.0.rand; phase = number.linlin( 0, 1, 69, 193 ); freq = number.linlin( 0, 1, 0.37, 0.047 ).rrand( number.linlin( 0, 1, 0.6, 0.086 ) ); freq = Pseq( [ freq ], 20.rrand( 50 ) ) ...
-
... ef(\rd1, { arg note=36, vol = 0.125, rt = 1, rAmt = 127.rand; var rate = rt.linlin(0,127,-1.0,1.0).round(0.5); var bufWr = Phasor.ar(0,1,0,s.sampleRate*(~len-(~len*rAmt.linlin(0,127,0.0,1.0))))+(LFNoise2.ar(0.2!2).abs*(s.sampleRate*(~ ...
-
... lume_slider.mouseDownAction = { | volume_slider, x, y, m | volume_value = (y).linlin( 0, volume_slider.bounds.height, 1, 0 ); volume = volume_value; volume_slider.refresh }; volume_slider.mouseMoveAction = volume_slider.mouseDownActi ...
-
... .moveTo(0@384); (wt0.size-1).do{ arg i; Pen.line( Point(i, wt0[i].linlin(-1.02,1.02,384,0)), Point(i+1, wt0[i+1].linlin(-1.02,1.02,384,0)) ); Pen.stroke; }; }); StaticText(win, Rect(517,100,384,48)) .font_(F ...
-
... currentFreq, ampOffset, currentAmp; freqOffset = ((num * freq) % (num + 1)).linlin(0,num,0.95,1.05); ampOffset = ((num * freq) % (num + 2)).linlin(0,num+1,0.5,1) * TRand.kr(0.4,1.2,gate); currentFreq = num * freq * freqOffset * ...