-
... rsion }.fork; } ) ~target = Buffer.read(s, ExampleFiles.child); ( { var input = PlayBuf.ar(1, ~target, loop: 1); PartConv.ar(input, ~fftsize, ~irspectrum.bufnum, 0.5) }.play ) // convolve with live input ( { var input = SoundIn.ar(0); PartC ...
-
... read(s, Platform.resourceDir +/+ "sounds/a11wlk01-44_1.aiff"); ( x = { var in = PlayBuf.ar(1, b, BufRateScale.kr(b), loop: 1); PitchShiftPA.ar( in, Pitch.kr(in)[0], //pitch tracking - we take just the frequency MouseX.kr(0.5, 2), //pitchRat ...
-
... ctave up, 0.5 is one octave down. -1.0 is backwards normal rate ... etc. Unlike PlayBuf , the rate is multiplied by BufRate, so you needn't do that yourself. centerPos the position in the buffer in seconds at which the grain envelope will r ...
-
... 0, amp: 0.1]) Example 1, loading and granulating a sound file. ( SynthDef(\help_playbuf, { |out = 0, bufnum = 0, rate = 1, startPos = 0, amp = 0.1, sustain = 1, pan = 0, loop = 1| var audio; rate = rate * BufRateScale.ir(bufnum); startPos = ...
-
... beepvol=1.0, lock=0; var trackb,trackh,trackq,tempo; var source, beep; source= PlayBuf.ar(1,b.bufnum,1.0,1,0,1); #trackb,trackh,trackq,tempo=AutoTrack.kr(source, lock); beep= SinOsc.ar(1000,0.0,Decay.kr(trackb,0.1)); Out.ar(0,Pan2.ar((vol* ...
-
... using Buffers for sound playback and recording. Buffers are commonly used with PlayBuf , RecordBuf , DiskIn , DiskOut , BufWr , BufRd , and other UGens. (See their individual help files for more examples.) Buffers can be freed or altered e ...
-
... c. (Pproto is another way; see Pattern Guide 06f: Server Control .) ( SynthDef(\playbuf, { |bufnum, start, dur = 1, amp = 0.2, out| var sig = PlayBuf.ar(1, bufnum, BufRateScale.ir(bufnum), 0, start); sig = sig * amp * EnvGen.kr(Env.linen(0. ...
-
... aintrig, features, kbuf, classif, centroid, resynth; // sig = AudioIn.ar; sig = PlayBuf.ar(1, b, loop: 1); chain = FFT(LocalBuf(512), sig); chaintrig = chain > -0.001; features = [SpecCentroid.kr(chain)]; // just one 1D feature here classif ...
-
... SynthDef SynthDef(\polybuf_sampler,{|out=0, amp=0.5, buffer, rate=1| var sig = PlayBuf.ar(numChannels:2, bufnum:buffer, rate:rate * BufRateScale.kr(buffer), trigger:1.0, startPos:0.0, loop:0.0, doneAction:2); Out.ar(out, sig) }).add ) // P ...
-
... e conversion for us SynthDef(\hoaDecoder,{ arg buffer; var playFile; playFile = PlayBuf.ar(~hoaNumChannels.asInteger, buffer, startPos:0, loop:0, doneAction:2); OffsetOut.ar(0, HOADec5_0.ar(~order.asInteger, playFile, lf_hf: lowfreq_highfre ...