-
... otaSpeed.value.round(0.01).asString; gui.srcRotaDir .value_(src[\rotadir].linlin(-1, 1, 0, 1)) .action_({arg view; if(src[\grpid] > 0){ sources.pairsDo{arg key, sc, i; if(sc[\grpid] == src[\grpid]){ sc[\rotadir] = ...
-
... -4, -4]), doneAction:2); oscs1 = Mix.fill(n, {|i| SinOsc.ar( ( i.linlin(0, n-1, 42, 74) + rand2(4.0) ).midicps, SinOsc.ar( (i.linlin(0, n-1, 78, 80) + rand2(4.0) ).midicps, 0.0, 12), 1/n ) }); oscs1 = BH ...
-
... nders[i] = OSCresponder(net, cmd, { |time, resp, msg, addr| var val = msg[1].linlin(inmin, inmax, outmin, outmax).round; [type, chan, num, val].postln; midi.perform(type, chan, num, val); }).add; };
-
... file position in seconds: centerPosInSeconds = { [ centerPosSlider.lo.linlin(0, 1, 0, soundFile.duration), centerPosSlider.hi.linlin(0, 1, 0, soundFile.duration) ] // returns an array [lo, hi] }; Window.closeAll; Bu ...
-
... j]; ~velocityFunc.(note.vel, thisThread.seconds - note.time, ~clock.beats).linlin(0, 127, -24, 0); }, \dur, Pfunc { var base = ~rate * 4 * (1 + ~jitter.rand2); var ret = if (~i == 0) { base * (1 + ~swing) } { base * (1 ...
-
... = EnvGen.kr(envEnv,gate,doneAction:2); lfo = LFTri.kr(lfo_speed); lfo = LinLin.ar(lfo, 0, 1, lfo_amp.neg.midiratio , lfo_amp.midiratio); pitch = note.midicps/4; ctls = [ [2 * 1 * (pitch + ((11-7)/32))* lfo, 0 ...
-
... s: 1, bufnum: buffer, rate: rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(buffer)) ); snd = snd * env; snd = BPF.ar(snd, ffreq, rq); snd = CombC.ar(snd, maxdelaytime: 2, delaytime: delay, dec ...
-
... s: 1, 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("stereosampler", {a ...
-
... reset); // for the fader and for loopbuf as a trigger xfade = Lag.kr(switch.linlin(0, 1, -1, 1), 0.1); // audio input. dry = SoundIn.ar(in ! 2, 2); // loopgate is opened when closing the loop and reset by t_reset loopgate = ...
-
... ion: Done.freeSelf); sig = Resonz.ar(sig, VarLag.kr(ffreq,0.3)); //freqHi = Linlin.ar(ffreq,20,2000,200,20000).poll; Out.ar(out, sig ! 2) }).add; ) //evaluate this block 3. ( ~ffreq= 200; ~amp = 1; x = Pmono(\bass, ...