-
... ar m, p; var cp; // start exponent and base at 2 b = 2; cp = 2.pow(b); // outer loop while({ cp <= this }, { a = 1; c = this; // inner loop while({ (c - a) >= 2 }, { m = (a + c).div(2); p = m.pow(b).min(this + 1).asInteger; // found perfect ...
-
//redFrik RedLoop { var sampler, magic; *new {|path, amp= 1, out= 0, group| ^super.new.initRedLoop(path, amp, out, group); } initRedLoop {|path, amp, out, group| magic= 999999.9.rand.asSymbol; Server.default.waitForBoot{ sampler= this.prTyp ...
-
... ing gesture_bus, // bus holding incoming gesture gesture_buf, // buffer holding loop data rec_buf_i = 0, // index of gesture buf currently recording gesture_rec_armed = 0, // record new gesture when high gesture_playback_armed = 0, // playb ...
-
... am { arg inval; var f, a; var streamf = pf.asStream; var streama = pa.asStream; loop { f = streamf.next(inval); a = streama.next(inval); if (f.isNil || a.isNil) { ^inval }; // NOTE: Normally we would expect 'stream' to do processRest. // Bu ...
-
... | var bufplayerfunc = if(pitchEnv, { {|env, buffer, rate=1, trigger=1, start=0, loop=1, pitchenv=0.5, doneAction=0| // Lag added to pitch envelope to seperate it from amplitude envelope var penv = env.lag.range(1-pitchenv*rate, rate); PlayB ...
-
... ^if (useScale) { res * scaler * sign } { res }; } asStream { ^Routine({ |inval| loop { this.next(inval).yield }; }) } embedInStream { |stream| this.asStream.embedInStream(stream) } }
-
... er, Phasor.ar(1, 1, 0, BufFrames.ir(buffer))); wet= PlayBuf.ar(2, buffer, rate, loop:1); ReplaceOut.ar(out, XFade2.ar(dry, wet, mix)); }, [0, lag, lag], metadata: ( specs: ( \out: \audiobus.asSpec, \mix: ControlSpec(-1, 1, 'lin', 0, -1), \r ...
-
... 3 ); //and another a.play( \snd3 , 0.1, 0.1, 0.1); //very short a.play( \snd2 , loop:1); //looping a.stop( \snd2 , 4); //stop with 4 second fadetime ( //start many at once a.play( \snd1 ); a.play( \snd2 ); a.play( \snd3 ); ) a.flush(0); //s ...
-
... t(\numChans, s.options.numOutputBusChannels); Tdef(\chanTest, { |env| var chan; loop { chan = Ndef(\chanTest).monitor.out ? 0; chan = chan + 1; if (chan >= env.numChans) { "chanTest begins".postln; chan = 0; Ndef(\chanTest).stop; env.timeSt ...
-
... iew, hZoomSlider, atkText, atkNumber, relText, relNumber, rateText, rateNumber, loopButton, volSlider, playButton, busText, busNumber; *new {|parent, bounds, spf, folder= "", controls= true| ^super.new.initAbstractSPlayFileView(parent, boun ...