-
s.quit s.boot // fill a buffer with an impulse-train b = Buffer.alloc(Server.default, Server.default.sampleRate*2, 1); { RecordBuf.ar(Blip.ar(440, SampleRate.ir/440), b.bufnum) }.play // play back with double speed - heavy aliasing occurs w ...
-
... celength = 100; ~dataspacechanwidth = 10; // First create the data ~dataspace = Buffer .alloc(s, ~dataspacelength, ~dataspacechanwidth); ~data = ~dataspacechanwidth.collect{ |index| ((0..~dataspacelength)*2*pi/~dataspacelength).sin * ((8 * ...
-
... s compulsory. "action" can be a string, in which case it's the path for the SOM buffer to be written to (AIFF format); or it can be a function, in which case it is evaluated and passed the SOM buffer. Note that the data should be pre-scaled ...
-
... sums the differences to form a single control-rate output. Example s.boot; b = Buffer .alloc(s, 1024); c = Buffer .alloc(s, 1024); ( x = { var sig1, sig2, chain1, chain2, chainOut, out; sig1 = Saw .ar(440); sig2 = Saw .ar(660); chain1 = FF ...
-
... boot; // Load an audio file and plot the MKL distance as a function of time b = Buffer .alloc(s, 512, 1); c = Buffer .read(s, "sounds/a11wlk01.wav" ); ( x = { var in, chain, mkl; in = PlayBuf .ar(1, c.bufnum, BufRateScale .kr(c.bufnum)); ch ...
-
... h a fixed powthresh value. Feel free to dabble with the parameters. s.boot; b = Buffer .alloc(s, 512, 1); // Move the mouse to vary the frequency, and the amount of noise added. // Watch the scope/post window to see the change in phase devi ...
-
... h a fixed powthresh value. Feel free to dabble with the parameters. s.boot; b = Buffer .alloc(s, 512, 1); // Move the mouse to vary the frequency, and the amount of noise added. // Watch the scope/post window to see the change in complex de ...
-
... s *allocBuf { |server, netsize, numdims, numinputchannels, init| var buf; buf = Buffer.alloc(server ? Server.default, netsize ** numdims, numinputchannels); if(init.notNil){ Task{ server.sync; init.switch( \rand, { this.initBufRand(buf) }, ...
-
... Combs = 8, numAllpasses = 4, tapScale = 1, combScale = 1, allpassScale = 1; var buffer, // a buffer for the delay line tapData, // Early reflection tap data (times, levels) times, levels, tapsOut, // output from the delay taps combData, // ...
-
... Examples // Simple example s = Server .local.boot; //Server.internal.boot; b = Buffer .alloc(s,2048,1); ( x = { var in, chain, powers, cutfreqs; in = LPF .ar( WhiteNoise .ar, MouseX .kr(10,10000, 1)); chain = FFT (b.bufnum, in); powers = F ...