-
... heir dur //doneaction will free the synth at the end of control line.kr = dur * PlayBuf.ar(1, bufnum, BufRateScale.kr(bufnum), loop: 0) ,pan) ,cutFrequency) ) } ) ; aDef.send(server) ; } setGain { arg value; gain = value; } readGain { ^gain ...
-
... ine d = Buffer.read(s, ExampleFiles.child); ( x = { var in, fft, array; // in = PlayBuf.ar(1, d, BufRateScale.kr(d), 1, 0, 1); in = SoundIn.ar(0); fft = FFT(LocalBuf(1024), in); // for sampling rates 44100 and 48000 // fft = FFT(LocalBuf(20 ...
-
In Divisions - Midterm: Plunderphonics with Granular Sampling (musc-9-plunderphonics) by jonathan-coon (Jonathan Coon) Code
... ger Remix).wav", channels: [0]); // Listen to the sound file if you want: { PlayBuf.ar(2, b) }.play; // Why not some instant fun, right? { PlayBuf.ar(2, b, MouseX.kr(0, 2)) }.play; // ************************************** // 2) ...
-
... synth, playing the data back at one-frame-per-control-block { var data; data = PlayBuf.kr(numFeatures, databuf, loop: 1); SOMTrain.kr(sombuf, data, netsize, numdims, /* traindur: */ numFramesToDo, nhood, 1, initweight); Line.kr(dur, 0, dur ...
-
... ------------------------------------------------------------ // test sig sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile // ------------------------------------------------------------ / ...
-
... last]; ///f.numFrames; end= lengths[last]; ///f.numFrames; //CutBuf3 Synth((\cb3playbuf++(f.numChannels)), [\bufnum, buffer.bufnum, \startPos,start,\dur, (end/f.sampleRate), \atk,0.0,\rel,0.0]); //f.numFrames overview.setSelectionStart(0,st ...
-
... e sample? (phrasepos%beatlength) }); //in frames since about to synthesise with PlayBuf //.round(1).asInteger; ^if(beatorframe==0, {((posbeats/beatlength)*numFrames)},{posbeats}); } convertoffset {arg block, beatorframe=0; ^if(beatorframe== ...
-
... ckTime: attack, releaseTime: release, level: amp).kr(doneAction: 2); snd = PlayBuf.ar( numChannels: 2, bufnum: buffer, rate: rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(buffer)) ); ...
-
... ZeroXBufRd // as the trigger deltas are given by the source then. ( { var src = PlayBuf .ar(1, b, BufRateScale .ir(b)); // write zero crossings, but no need to overwrite sound buffer ZeroXBufWr .ar(src, b, z, startWithZeroX: 1, writeSndBuf: ...
-
... ns, numchans); Server.default.sync; // Copying data from b to c: { RecordBuf.ar(PlayBuf.ar(numchans, b, BufRateScale.ir(b), doneAction: 2), c, loop:0) * 0.1; }.play; Server.default.sync; 1.0.wait; c.loadToFloatArray(action: { |data| // The ...