-
... an grab the FFT buffer and peek at the magnitudes ( p = Plotter.new; t = Task { loop { 0.1.wait; b.loadToFloatArray(action: { |data| { p.value = data[2..] .clump(2) .collect { |a| a[0].squared + a[1].squared } .collect { |a| if(a.isNaN) { 0 ...
-
... 3]) ] ).asStream; 50.do({ x.next.postln }); ) // note that if the last pattern loops it will stick to that one: ( f = { |vals| vals.postln; }; x = PstepNfunc(f, [Pseq([1, 2, 3]), Pseq([10, 20, 30, 40]), Pseq([100, 200, 300], inf)]).asStrea ...
-
... l monitor it with headphones ) ⧉ ✔ We will load a very short sound file that we loop so that we can observe the soundfield transformations: ~hoaSoundFile = Buffer.read(s,HOA.soundsDir++"/eigen_ACN_N3D_CIRMMT_Foyer_short.wav"); ~hoaSoundFile ...
-
... start playing back data from the file. . stop stop playback. . close stops main loop. . currentTime report current time in file during playback. e.g. 19:04:53.201 Returns: a String Inherited instance methods Examples ( //var board= CytonSer ...
-
... Files.child); { FreqShift.ar(PlayBuf.ar(1, b.bufnum, BufRateScale.kr(b.bufnum), loop: 1), LFNoise0.kr(0.45, 1000), 0, [1, 1]) }.play(s); ) // shifting bandpassed noise { FreqShift.ar(BPF.ar(WhiteNoise.ar(0.2), 1000, 0.001), LFNoise0.kr(5.5, ...
-
... c = Pslide(#[1, 2, 3, 4, 5], inf, 3, 1, 0) * 3 + 67; x = c.asStream; Routine({ loop({ Synth(\help_sinegrain, [\freq, x.next.midicps]); 0.17.wait; }) }).play; ) ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classes/Pslide.s ...
-
... value Source: Osc.sc Description Linearly searches a buffer for a value (i.e., loops over the frames in the buffer from the beginning, checking for float equality), and returns index of first occurrence of said value. Returns -1 if value i ...
-
... rand(300)); }); }.select{|x| x.notNil}; }.flat; syns= {Synth(\imp)}.dup(n); //--loop w.draw{ //--render Pen.smoothing= true; Pen.strokeColor= Color.white; sprs.do{|spr| spr.update; //--render springs Pen.moveTo(spr.object.loc.asPoint); Pen. ...
-
... { 0.3.coin }), Pn(Pseries(0.5, 0.1, 10)), Pn(Pseries(6, -0.1, 10))).asStream; { loop { Synth(\help_sinegrain, [\freq, a.next * 600 + 300]); 0.2.wait; } }.fork; ) ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classes/Pif.sch ...
-
... 2| var in, chain; in = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1); chain = FFT(bufnum, in); chain = PV_MagBelow(chain, MouseX.kr(0, 310)); Out.ar(out, 0.5 * IFFT(chain).dup); }).play(s, [\out, 0, \bufnum, b.bufnum, \s ...