-
... g = Impulse.kr(LFClipNoise.kr(4, 3, LFClipNoise.kr(0.2, 2, 7))); snd = RLPF.ar( SinOsc.ar(freq, 0, Decay.kr(trig, 1.8)).distort , 554, 0.3) * 0.1; Out.ar(out, Pan2.ar(snd, pan)) }).add; ) ( var aroh, avaroh, synth, str, pat; // gandhari rag ...
-
... v = EnvGen .kr( Env .perc(0.01, sustain, 0.2, amp), doneAction:2); Out .ar(out, SinOsc .ar(freq, 0, env)) }).add; ) ( var a; a = Pn ( Pbinop ( \hypot , Pseries (0, 1, 34), Pseries (3, -1, 34)), inf ).asStream; { a.do { |val| Synth ( \help_s ...
-
... formula i = freqDev/modfreq: freqDev = modIndex * modFreq; modulator = SinOsc.ar(freq: modFreq, mul: freqDev); carrier = SinOsc.ar(freq: carrFreq + modulator, mul: amp); Out.ar(0, [carrier, carrier]); }).add; s.sync ...
-
... hDef ( "help-synth" , { | freq = #[440, 450, 460], out = 0 | Out .ar(out, Mix ( SinOsc .ar(freq, 0, 0.1))); }); x = x.play(s, [freq: [500,501,510] ]); ) x.set( \freq , [1,2,3] * 400 + [1,2,3], \out , 1); // two pairs x.set( \freq , [3] * 40 ...
-
... sis SynthDef(\sine, {|out= 0, freq= 400, beat= 1, amp= 1, pan= 0| var z; z= Mix(SinOsc.ar(freq+[0, beat], 0, amp*0.5)); Out.ar(out, Pan2.ar(z, pan)); }).add; s.sync; //--world RedUniverse.clear; w= RedWindow("wave test synths", Rect(128, 64 ...
-
... can also use if the condition ugen is 0 / 1 ( { if( LFNoise1 .kr(1.0,0.5,0.5) , SinOsc .ar, Saw .ar ) }.play ) ADVANCED: the functions will be inlined, which plucks the code from the functions and uses a more efficient jump statement. { if( ...
-
... sis SynthDef(\sine, {|out= 0, freq= 400, beat= 1, amp= 1, pan= 0| var z; z= Mix(SinOsc.ar(freq+[0, beat], 0, amp*0.5)); Out.ar(out, Pan2.ar(z, pan)); }).add; s.sync; //--world RedUniverse.clear; w= RedWindow("wave test synths", Rect(128, 64 ...
-
... = swishPitch * whooshPitch.range(0.8, 1.3); swish = Mix.fill( 3, { |i| SinOsc.ar(swishPitch + (i * whooshPitch.exprange(45, 1)), rrand(0.0, 1.0), 0.4); } ); trumpPitch = trumpPitch * whooshPitch.range(0.92, 1.08); trump = Mix. ...
-
... ynthDef(\blo, { arg out=0, amp=0.1, gate=1, pan=0, freq=200; var sig; sig = SinOsc.ar(freq*[1,1.001]); sig = sig * EnvGen.ar(\adsr.kr(Env.adsr(0.01,0.1,0.8,0.1)),gate,doneAction:2); sig = Pan2.ar(sig, pan, amp); Out.ar(out, sig); ...
-
... data ( a= SynthDef("testqitch",{arg infreq=440; var in, freq, hasFreq, out; in=SinOsc.ar(infreq); # freq, hasFreq = Qitch.kr(in, b.bufnum,0.01,1); Out.ar(0,[SinOsc.ar(freq,0.1),in]); }).play(s); ) a.set(\infreq,237); c=Buffer.read(s,"/Volu ...