-
... var hammer, snd, delay, tonefreq, env; env = Env.perc(att, rel, amp * 4, -1).ar(doneAction: 2); // Delay line times: freq, freq - 4 cents, freq + 3 cents. In the original this was done by converting freq to midi. delay = (1 / (freq * [2.pow ...
-
... q = 440, sustain = 0.05| var env; env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar(freq, 0, env)) }).add; ) ( var a, b, c; a = Pfuncn({ exprand(0.1, 2.0) + #[1, 2, 3, 6].choose }, 2); b = Pfunc ...
-
... e. It outputs the frequency of that bin, and its magnitude. No interpolation is done on the values. This could be used as a primitive pitch detector, but in practice autocorrelation methods (as used in Pitch and Tartini ) give more reliable ...
-
... ynthDef(\sample, {|out= 0, buf, rate= 1| Out.ar(out, PlayBuf.ar(1, buf, rate, doneAction:2)!2); }).add; ) //test1 - single Synth(\sample, [\buf, b[0]]).register.onFree{"hello".postln};//should post when first soundfile done playin ...
-
... e compiled and loaded into the Server without writing them to disk. This can be done while performing. The downside of this is that precompiled SynthDefs lack some of the programmatic flexibility that was one of SC2's great strengths. Much ...
-
... SatieConfiguration: -hoa Higher-order Ambisonics decoders. The registration is done by means of loading the plugin code by SatiePlugins and its methods. The source code of SatieConfiguration: -loadPluginDir shows how this is done. The plug ...
-
... r the FFT chain fires - this is normally achieved using PackFFT but can also be done using Demand . chain is an FFT chain, bufsize is the size of the expected input FFT frames, binindex is the integer index of the bin you want to query, and ...
-
... t Server. Watch the post window and server window for the result // once that's done execute this to make a sound { FSinOsc.ar(800, 0, 0.1) }.play; ⧉ ✔ (Press and hold Cmd (the Apple key) and then press period to stop the sound started abov ...
-
... + hi; snd = (snd * 60.dbamp).tanh; snd = snd * Env.asr(0, 1, 0.01).kr(Done.freeSelf, \gate.kr(1)); Out.ar(\out.kr(0), snd * \amp.kr(0.1)); }).add; ) ( Pbind(*[ instrument: \gabberkick, amp: -20.dbamp, leg ...
-
... t Server. Watch the post window and server window for the result // once that's done execute this to make a sound { FSinOsc .ar(800, 0, 0.1) }.play; (Press and hold Cmd (the Apple key) and then press period to stop the sound started above.) ...