-
... mes: [ 0.1, rythm_length / 4, 0.1 ] ), doneAction: Done.freeSelf ); snd = SinOsc.ar( freq, 0, 0.5 ) + SinOsc.ar( freq * 2, 0, 0.4 ) + SinOsc.ar( freq * 4, 0, 0.3 ) + SinOsc.ar( freq * 8, 0, 0.35 * EnvGen.kr( envctl3 ) ) + Sin ...
-
... Examples // use NamedControl to create a number of multichannel controls: a = { SinOsc .ar( NamedControl .kr( \freq , [300, 330, 370], [1, 0.3, 0.02])).sum * 0.1 }.play; a.setn( \freq , [700, 705, 890]); a.setn( \freq , [0, 2, 5].midiratio ...
-
... reqMod; freqMod = LFNoise2.kr(3.3).range(0.98, 1.02); // L and R channels inL = SinOsc.ar(440 * freqMod, mul: 0.3); inR = SinOsc.ar(330 * freqMod, mul: 0.3); // L and R envelopes #env1, env2 = EnvGen.kr( Env.perc(releaseTime: 0.3), Impulse. ...
-
... ynthDef ( "help-mul" , { arg out=0; var inA, chainA, inB, chainB, chain ; inA = SinOsc .ar(500, 0, 0.5); inB = SinOsc .ar( Line .kr(100, 400, 5), 0, 0.5); chainA = FFT ( LocalBuf (2048), inA); chainB = FFT ( LocalBuf (2048), inB); chain = P ...
-
... nstance Methods Inherited instance methods Examples { RLPF.ar(Saw.ar(200, 0.1), SinOsc.ar(XLine.kr(0.7, 300, 20), 0, 3600, 4000), 0.2) }.play; ( { var ctl = RLPF.ar(Saw.ar(5, 0.1), 25, 0.03); SinOsc.ar(ctl * 200 + 400) * 0.1; }.play; ) ( { ...
-
... nstance methods Examples Distribute three signals to stereo: ( { var signals = [SinOsc.ar(220), Saw.ar(330), Pulse.ar(440, 0.4)]; Distribute.ar(signals, 2) }.play; ) ⧉ ✔ Sum an array of signals to mono: { Distribute.ar([SinOsc.ar(220), SinO ...
-
... ity; be aware that it generates a large amount of output. { CheckBadValues .kr( SinOsc .ar); 0}.play // nothing wrong here { CheckBadValues .kr(1 / 0, 1).poll; 0 }.play // check infinity x = { arg test = -1; CheckBadValues .kr(test); 0 }.pl ...
-
... mirror1, 1), Drand ((4..10), 8)], 2000); freq = Demand .kr(trig, 0, seq * 100); SinOsc .ar(freq + [0,0.7]).cubed.cubed.scaleneg( MouseX .kr(-1,1)) * 0.1; }.play; ) ( { var trig, seq, freq; trig = Impulse .kr(12); seq = Drand ([ Dseq ((1..5) ...
-
... ySum, { |out=0,freq=1,amp=1,n=1,ks=#[1]| var l,sigl,sigr,env; sigl = SinOsc.ar(freq:0,mul:0); sigr = SinOsc.ar(freq:0,mul:0); ks.do({arg item,i; k = item; sigr = sigr+SinOsc.ar(freq:freq*2pi*k/n,mul:amp,phase:0.5* ...
-
... env3 = EnvGen.kr(Env.new([0.8,0],[0.10],[-10])); pch = (32+env2).midicps; osc = SinOsc.ar(pch, 0, env); noise = BPF.ar(WhiteNoise.ar(env3), 200, 2); outS = osc+noise; OffsetOut.ar(out, Pan2.ar(outS, pan, amp)); }).add; SynthDef("ana_snare", ...