-
... b = wavs.collect{ |wav| Buffer.loadCollection(s, wav) }; s.sync; x = { var in = SinOsc.ar(100, 0, SinOsc.kr(0.1, 0, 0.5, 0.5)); Shaper.ar(b, in) ++ LeakDC.ar(Shaper.ar(b[1], in)) }.scope; }) ) x.free; b.do(_.free); b = nil; ⧉ ✔ Waveshaping ...
-
... is fails. // UGens { (Dual(1, 15) + Line.ar(0, 1, 0.01)).dual }.plot { (Dual(1, SinOsc.ar(100) * 20) + Line.ar(0, 1, 0.01)).dual }.plot // mappings Dual(0.5).linlin(0, 0.3, 0, 1) Dual(0.5).linexp(0.01, 1, 0.01, 1) expexp(-0.7942271232605, 0 ...
-
... rm; harm = [1,1.01,2,2.02,3.5,4.01,5.501]; harm = harm ++ (harm*2); snd = SinOsc.ar(freq*harm).sum.distort * 2; snd = snd + SinOsc.ar(freq / [1, 2]).sum!2; env = EnvGen.kr(Env.adsr(0.001,0.2,0.9,0.25), gate, amp, doneAction:2); ...
-
... Env.linen( attackTime: att, sustainTime: rel / 3, releaseTime: rel ).kr; body = SinOsc.ar(freq: bodyFreq, mul: bodyAmp); // pop sweeps over the midrange popFreq = XLine.kr(start: 750, end: 261, dur: 0.02); popAmp = Env.linen( attackTime: at ...
-
... Inherited instance methods Examples // Permute a simple sinusoid: {PermModT.ar(SinOsc.ar(220),280,1600)}.play // Modulate both outfreq and infreq parameters with the mouse: {PermModT.ar(SinOsc.ar(220), MouseX.kr(500, 1200), MouseY.kr(1200, ...
-
... \resetPlay,\switch); ) NdefMixer(s) ( Ndef(\clicktrack, { Mix([ SinOsc.ar(440) * Decay.ar(Impulse.ar(2), 0.1, 0.2), SinOsc.ar(880) * Decay.ar(Impulse.ar(0.5), 0.1, 0.2) ]); }) ) ( Ndef(\oneTrackLooper, { // A ...
-
>> blk 1 sine == radpost == Ndef('block1', {arg freq=440 , phase=0 , mul=0.4 ; SinOsc.ar(freq,phase,mul)}); == radpostcont == (none)
-
... ~name = \SimpleKick; ~description = "A Kick generated from a fast pitch bended SinOsc, and a bit of white noise"; ~channelLayout = \mono; ~function = { var kicksig, kickenv, transient, transienv, kickfinal, kickfreq; kickfreq = XLine.ar(50 ...
-
... * amp.curvelin(inMin: 0, inMax: 1, outMin: 0, outMax: 1, curve: log(10)); snd = SinOsc.ar( freq: freq, phase: (Sweep.ar(trig: gate, rate: 2pi * [52.8, 740]) + (pi/3)).wrap(-pi, pi), mul: [2, 0.05] ).mean.tanh; snd = snd * env; Out.ar(out, P ...
-
... rt the server s.boot; // define a synthesis engine SynthDef("sine", { Out.ar(0, SinOsc.ar(440, 0, 0.2)) }).send(s); // schedule (run) synthesis s.sendMsg("s_new", "sine", n = s.nextNodeID, 0, 1); // stop the synth (delete it) s.sendMsg("/n_ ...