-
... ted instance methods Examples pvcalc // a sound file c.free; c = Buffer.read(s, ExampleFiles.child); ( { var in, chain, v; in = PlayBuf.ar(1, c, BufRateScale.kr(c), loop: 1); chain = FFT(LocalBuf(1024), in); chain = chain.pvcalc(1024, { |ma ...
-
... stance Methods Inherited instance methods Examples s.boot; ( c = Buffer.read(s, ExampleFiles.child); ) ( SynthDef("help-binStretch", { |out = 0| var in, chain; in = LFSaw.ar(200, 0, 0.2); chain = FFT(LocalBuf(2048), in); chain = PV_BinShift ...
-
... ) .action_({ arg sbs; a.resize_(sbs.value+1); }); f = SoundFile.new; f.openRead(ExampleFiles.child); a = SoundFileView(w, Rect(10,40, 700, 180)) .soundfile_(f) .readWithTask(0, f.numFrames, showProgress: false ) .resize_(1); w.front; ) ⧉ ✔ ...
-
... 500, 0, 0.2) }.play; ) // using sweep to index into a buffer b = Buffer.read(s, ExampleFiles.child); ( { var trig; trig = Impulse.kr(MouseX.kr(0.5, 10, 1)); BufRd.ar(1, b, Sweep.ar(trig, BufSampleRate.ir(0))) }.play; ) // backwards, variabl ...
-
... urce file that loops in a musically sensible way. For this example, we will use ExampleFiles.child from ExampleFiles because it's readily available. Empirically, we can find that the segment from 0.404561 to 3.185917 seconds produces a rhyt ...
-
... data anymore, just needed spectral version }.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 ...
-
... ds Inherited instance methods Examples s.boot; ( var winenv; b = Buffer.read(s, ExampleFiles.apollo11); // a custom envelope winenv = Env([0, 1, 0], [0.5, 0.5], [8, -8]); z = Buffer.sendCollection(s, winenv.discretize, 1); SynthDef(\buf_gra ...
-
... stance methods Examples // assumes hop of half fftsize, fine d = Buffer.read(s, ExampleFiles.child); // analyse loudness and poll result ( { var in = PlayBuf.ar(1, d, BufRateScale.kr(d), 1, 0, 1); var chain = FFT(LocalBuf(1024).clear, in); ...
-
... = Server.local; // note: not *that* columbia, the first one b = Buffer.read(s, ExampleFiles.child); ) // use any AUDIO rate ugen as an index generator { BufRd.ar(1, b, SinOsc.ar(0.1) * BufFrames.ir(b)) }.play; { BufRd.ar(1, b, LFNoise1.ar( ...
-
... es that are worth reading. Here is just one simple case that loads the standard ExampleFiles.child sound file and plays fragments from it. ( SynthDef(\playbuf, { |bufnum, start, dur = 1, amp = 0.2, out| var sig = PlayBuf.ar(1, bufnum, BufRa ...