-
... the standard a11wlk01.wav sound file and plays fragments from it. ( 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 .li ...
-
... like a ping-pong ball. PingPong is actually a compound built upon RecordBuf and PlayBuf . bufnum - first index of a multi channel buffer . inputArray - an array of audio inputs, the same size as your buffer. delaytime - delay time in second ...
-
... r( WhiteNoise .ar(1.dup), buf, LFNoise0 .ar(530).range(0, BufFrames .kr(buf))); PlayBuf .ar(2, buf, MouseX .kr(1, 2), loop: 1) * 0.1 }.play ) // avoid this (unless you like the glitch) by clearing buffer first: ( { var buf = LocalBuf (2048, ...
-
... PV_ConformalMap Buffer Manipulation BufRd BufWr DiskIn DiskOut Index WrapIndex PlayBuf RecordBuf PingPong TGrains Binary Operators BinaryOpUGen (overview) + - * / ** absdif amclip atan2 clip2 difsqr excess fold2 hypot hypotApx max min ring ...
-
... 2)}), 1760 * [1, 2, 4, 8], 0.01).sum * 10; // var a = SoundIn.ar(0); // var a = PlayBuf.ar(1, 0); Out .ar(0, GVerb .ar( a, roomsize, revtime, damping, inputbw, spread, drylevel.dbamp, earlylevel.dbamp, taillevel.dbamp, roomsize, 0.3) + a)}) ...
-
... nge(0, 1); // or, uncomment this line if you want to play the buffer in //sig = PlayBuf.ar(1, d, BufRateScale.kr(d), loop: 1); chain = FFT (b, sig); onsets = Onsets .kr(chain, MouseX .kr(0,1), \rcomplex ); // You'll hear percussive "ticks" ...
-
... 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 ...
-
... ] ).play ) 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 .kr(bufnum); startPos ...
-
... v" ); // ~target= Buffer.read(s, "sounds/break"); ( { var input, kernel; input= PlayBuf .ar(1, ~target, loop:1); Out .ar(0, PartConv .ar(input, ~fftsize, ~irspectrum.bufnum, 0.5)); }.play; ) // convolve with live input ( { var input, kernel ...
-
... var inA, chainA, inB, chainB, chain; inA = LFSaw .ar([100, 150], 0, 0.2); inB = PlayBuf .ar(1, d, BufRateScale .kr(d), loop: 1); chainA = FFT ( LocalBuf (2048), inA); chainB = FFT ( LocalBuf (2048), inB); chain = PV_MagMul (chainA, chainB); ...