-
... d(-1.0, 1.0), Rand(0.01, 3.0))); Out.ar(out, sig); }).add; s.sync; loop{ ~rseq = {Array.fill(~num = rrand(2, 8), {arg i; rrand(0, 8)})}; if(rrand(1, 5)==4, { ~scale = Scale.at(Scale.names.choose); }); if(rr ...
-
... 0.5).postv; // wrong names are ignored a.set(\z, 0.5).postv; Tdef(\a, { |envir| loop { 1.wait; envir.postln }; }).play; // add a named function to act on changing inVals a.add(\test, { |influx| Tdef(\a).set(*influx.outValDict.asKeyValuePair ...
-
... ntrol Some patterns mimic language-style control methods: conditionals ( Pif ), loops ( Pwhile ) and error cleanup ( Pprotect ). Pif(condition, iftrue, iffalse, default) Evaluates a pattern condition that returns true or false. Then, one va ...
-
... , 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 = KMeansRT.kr(~k ...
-
... ger', [0, 1], {|val| val.round(1)}], ['startPos', [0, 1]], ['mul', [0, 2]]]], ['loop', [['rate', [0.1, 10]], ['trigger', [0, 1], {|val| val.round(1)}], ['startPos', [0, 1]], ['mul', [0, 2]]]], ['cue', [['loop', [0, 1], {|val| val.round(1)}] ...
-
... bufnum:buffer, rate:rate * BufRateScale.kr(buffer), trigger:1.0, startPos:0.0, loop:0.0, doneAction:2); Out.ar(out, sig) }).add ) // Play pattern using selection. Try updating the selection in the gui and hear what happens ( Pbind( \instru ...
-
... I devices. PG_Cookbook05_Using_Samples Playing a pattern in time with a sampled loop Using audio samples to play pitched material PG_Cookbook06_Phrase_Network Building a more complicated melody using shorter phrase patterns Also illustrates ...
-
... 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_highfreq, xover: crossOver);) }).load(s); s.sync; // we need to l ...
-
... aSignal.source = { HPF.ar(PlayBuf.ar( ~hoaSoundFile.numChannels, ~hoaSoundFile, loop:1 ), 100) }; ~hoaTransformer.source = {var in; in = \in.ar(0!~hoaNumChannels); in }; ) ⧉ ✔ Finally we delete the files: File.delete(thisProcess.platform.us ...
-
... Forward stepBack gotoEnd gotoBeginning frame playSelectionOnly skipFrames muted loopMode rate Movie Editing copy clear cut paste editable currentTime Appearance showControllerAndAdjustSize resizeWithMagnification fixedAspectRatio Inherited ...