-
... lope:Env.asr(releaseTime:0.05), gate:envgate ); freq = pitch.midicps; osc = SinOsc.ar( freq ); Out.ar(0, osc*env*amp); }).add; ) /////////////////////////////////////////////////////////// ( // 2): // Boot Server s.boot; ) ...
-
... n.kr(Env.perc(0.01, sustain, 0.2, amp), doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar(freq, 0, env)) }).add; ) ( var a; a = Pn(Punop(\sqrt, Pseries(0, 1, 12))).asStream; { a.do { |val| Synth(\help_sinegrain, [\freq, a * 200 + 300].postl ...
-
... t; a.buffer[0].plot; a.env.peakTime; a.peakTime; ( { var env = a.env; Out.ar(1, SinOsc.ar(LFNoise0.kr(200, mul: 300, add: 700), mul: EnvGen.kr(env, doneAction: 2))) }.play; a.play; ) ///////////////////////////////////////////////////////// ...
-
... width = 0.3, xfade = 0.5| var sig = In.ar(outbus, 2), wet = DelayC.ar(sig, 0.2, SinOsc.kr( rate * Array.fill(max(1, sig.size), { ExpRand(0.9, 1.11111) }), 0, width * predelay, predelay ) ); XFade2.ar(sig, wet, xfade * 2 - 1) }; ~eq = MultiE ...
-
... Player(\px).put($r, { p.do(_.resume) }); // David Cottle example IIRC ~test = { SinOsc.ar(LFNoise0.kr([10, 15], 200, [300, 500])) * 0.2 }; ~test.play; // re-send or rebuild the sound ( ~test = { SinOsc.ar( LFNoise0.kr([10, 15] * exprand(0.5 ...
-
... , { |amp = 0.1, bus, att = 0.01, rel = 1| var in = In .kr(bus, 1); Out .ar(0, ( SinOsc .ar( Latch .kr(in, in).midicps, 0, amp) * EnvGen .ar( Env .perc(att, rel), doneAction: 2))!2) }).add; ) ( x = { Out .kr(c, LFDNoise3 .kr(1, 5, 75)) }.pla ...
-
... LFPulse.kr(30, 0.6), 0.5)}.plot(0.1); //roughly the same //--audio examples a= {SinOsc.ar(RedOnePole.ar(LFPulse.ar(MouseX.kr(1, 50, 1)), MouseY.kr(0.975, 1)).linexp(0, 1, 300, 3000), 0, 0.2)!2}.play a.free ⧉ ✔ helpfile source: /tmp/scquark_ ...
-
... ar e, z; e= EnvGen.kr(Env.perc(dur*0.01, dur), t_trig); z= BPF.ar(LFSaw.ar(freq+SinOsc.ar(freq2, 0, amount), 0, amp), freq2*2); Out.ar(out, Pan2.ar(z*e, pan)); }).add; s.sync; //--world w= RedWindow("collision test2", Rect(128, 64, width, h ...
-
... (bt.value > 0) { "otto".speak } { "off".speak } }); Ndef(\four, { |a, b, c, d| SinOsc.ar( 440 * (2 ** [a, b, c, d])).sum * 0.1 }); Ndef(\four).play; Ndef(\four).gui; // test attachMapped Ndef(\four).addSpec(\a, [0, 2]); Ndef(\four).addSpec ...
-
... ew items (not text). Inherited instance methods Examples a= RedEfxVerb.new; c= {SinOsc.ar([400, 404], 0, 0.5*Decay.kr(Dust.kr(1)))}.play; g= RedEffectModuleGUI(a); g.redEffectModule==a; g.parent; g.views; a.verbMix= 0.5; a.verbRoom= 0.9; g. ...