-
( SynthDef(\Grain, {var sig, grain, env, sum, filt, pan1,pan2; sig = DynKlank.ar(`[Array.fill(14,{Rand(60,1200)}),Array.fill(14,{ExpRand(0.128, 0.7)}),Array.fill(14,{ExpRand(0.128, 0.7)})],BrownNoise.ar(0.7)); grain = GrainIn.ar(1 ...
-
... itch is a ratio ~pan = { rrand(-0.8, 0.8) }; ~wait = { 0.1 }; // time between grains ~playTask = Task({ loop { var pos, pitch, amp, dur, env; Synth(\grain, [ \bufNum, buffer, \pos, pos = ~pos.value, \pitch, pitch = ~ ...
-
... demandUGens: Dseries(0, trigPeriod/stretch)); // Extraction of 2 consecutive grains // Both grains need to be treated together for superposition afterwards sig = [GrainBuf.ar(1, trig, trigPeriod, bufnum, 1, pos, envbufnum: envBufnum) ...
-
PlayBuf, granular sampling, Pbind, fork, TGrains ////////////////////// // GRANULAR SAMPLING // Code examples ////////////////////// // Replace path (a string of characters) with a path to a wav or aiff file on your computer b = Buf ...
-
... t=0, buf, gate=1, t_rec=0, t_reset=1, t_chop=0, plvl=1, switch=0, frombeat=0, grainsize=1, numbeats=4, numsubcycles=4, amp=1.0, wet=0.5; var dry, loopgate, time, grainlength, grainframes, subcycles, cycles, grains, trigcounter, grains ...
-
Good Morning! Inspired by a Nokia alarm clock sound from one of their non-smartphone mobiles, I designed an alarm clock sound for your mobile. The basic idea is to start with a very simple and short grain, giving you a chance to reach fo ...
-
... let, which does something like formant synthesis by outputting short sinusoidal grains in response to impulses, I thought, what if we replace the sine grains with an arbitrary impulse response? You could do that with TGrains, but as the ...
-
... MIDIdef.noteOn(\on, { arg val, num, chan, src; ~notes[num] = Synth.new(\voxgrains, [ \baserate, (num-60).midiratio, \amp, val.linexp(1,127,0.02,0.3), //velocity detection \gate, 1, \bend, ~bend.linlin(0,16383,-2,2), \bas ...
-
An 8-channel fixed-media piece arranged and composed Till Bovermann aka LFSaw for the 2011 edition of 4for8, Helsinki. s.options.numOutputBusChannels = 16; s.reboot; ( var amp = 0.1; var isDolby = true; isDolby.if({ SynthDef( ...
-
... the "ratio" slider, and you can see and hear time stretching. ( var tick = 4, grainSamps = 100, grainHeight = 50, grainIOI = 50, // samples between grain onsets grainStep = 50, // step size between source windows linkI = 0; var p ...