-
... 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 ...
-
... 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 ...
-
... 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 ...
-
... |bpm| if(bpm.notNil) { clock.tempo_(bpm / 60); }; }).front; routine = Routine({ loop { Synth(\GMhelp, [\freq, notes.choose]); tapTempoButton.blink; 1.wait; } }).play(clock); win.layout_( VLayout() .margins_(0) .add(tapTempoButton) ); win.fr ...
-
... e: F[G[A]] => G[F[A]] According to this blog post[1] Traverse generalizes a for loop with functional code. It is based on the paper "The Essence of the Iterator Pattern"[2]. [1]: http://etorreborre.blogspot.com/2011/06/essence-of-iterator-p ...
-
... playFile; playFile = PlayBuf.ar(~hoaNumChannels.asInteger, buffer, startPos:0, loop:0, doneAction:2); OffsetOut.ar(0, HOAConvert.ar(~order.asInteger, playFile, inFormat: informat, outFormat: outformat);) }).load(s); s.sync; // we need to l ...
-
... inValDict, 4, w); b = [\srcA, \srcB, \srcC].collect { |srcName| // var ktl = KtlLoop(srcName).looped = true; var sl2d = Slider2D(w, 120@130).action_({ |sl, x, y| a.influence(*[srcName, \x, sl.x.unibi.round(0.001), \y, sl.y.unibi.round(0.001 ...