-
... ffer.freeAll; /* Function for interpolating between two values based on an interpolation value: 0 ==> old, 1 ==> new, 0.5 ==> halfway between old/new, etc */ ~interpFn = { arg old=20, new=10, bal=0.5; old + ((new - old) * bal ...
-
For a long time, I thought it was impossible to use Pseg to interpolate between Envs like it does with simple values, but I discovered it only needs .asArray ( SynthDef(\sin, { arg out=0, gate=1, amp=0.1, pan=0, freq=200; var sig; sig ...
-
... u don't hear any noise or clicking. (you would if you had too few steps in the interpolation, but even with 20-50 steps, it seems noise-free) ( // Set things up, and start the Synth s.waitForBoot { SynthDef(\oscplayer,{ arg out = 0, bu ...
-
... playback. Each buffer holds one extra sample, to try to give BufRd's linear interpolation enough information to work with. There may or may not be an off-by-one bug here. If you find a problem, let me know. ( ~loadChunks = { |server, p ...
-
... \atk, Pwrand([0,Pexprand(0.02,0.1,1)],[0.99,0.01],inf), \rel, Pseq(Array.interpolation(64,0.03,0.25).mirror2,inf), \cAtk, 1, \cRel, Pseq(Array.interpolation(64,-4,3).mirror2,inf), \amp, Pseq([Pfin(64, Pseq([Pgeom(0.13,-3. ...
-
... ]; fundamentalFrequency = 100; vibratoSpeed = 6; vibratoDepth = 7; // Interpolation between corners fxy = {arg x, y; 3.collect({arg e; 5.collect({arg i; ( f00[e][i] * (1-x) * (1-y) ) + ( f10[e][i] * x * (1-y) ...
-
... prand(3)).normalizeSum) // * Line.kr() ), NamedControl.kr(\sub_pan, Array.interpolation(ha.size,-1,1)) * Line.kr(from,to,dur) ).sum * EnvGen.kr(Env.perc(atk, dur-atk, amp, curve).blend(Env.sine(dur), blend), doneAction:2); sig ...
-
GUI animation for multiple wavetable interpolation ( //after running code, esc key to close window and abort animation var wt0, wt1, result, wt0view, wt1view, resultView, animateFn, wmean, numSteps, animate, wtIndex, win, wtPosBox, wt ...
-
... ( rythm_array.size + 1 * margin ) / ( rythm_array.size ); var steps = Array.interpolation( number_of_steps, min_val, max_val ); // Interpolation between min value and max value, returning an array which size is equal to the number of st ...
-
... $1, { a.size.do{ |i| f.(i, 512.rand) } }, // random waveform $2, { Array.interpolation(1024, 0, 512).do{ |val, i| f.(i, val) } }, // linear ramp $3, { Array.fill(1024, { |i| sin(i/1024*2pi) * 256 + 256 }).do{ |val, i| f.(i, val) } ...