-
... sOut", { arg inbus, amp = 0.1, gate = 1, att = 0.1, sus = 1, rel = 1; var env = EnvGen.kr(Env.asr(att, sus, rel), gate); Out.ar(~master_in, In.ar(inbus, 2) * amp * env * 0.4); }).add; // Wait for SynthDefs to be added... s. ...
-
... reated waveforms (~wt = Array.fill(90, { var numSegs = rrand (90, 20); Env( (({rrand(0.0, 1.0)}!(numSegs-1))*[1, -1]).scramble, {rrand(1, 20)}!numSegs, 'sine' // {rrand(-20,20)}!numSegs ).asSignal(1024).asWavetable; ...
-
... p', 0.1, 1); focusSpec = ControlSpec(0, 2, 'lin', 0.1); gui = (); //the gui environment guipoints = 800; srcsize = 15; txtsize = Point(40, 24); btnsize = Point(65, 24); fdrsize = Point(135, 24); fontlrg = Font("Helvetica", 18); f ...
-
... {a=rrand(25,50);Pan2.ar(SinOsc.ar(Demand.ar(Impulse.ar(1/a),0,Dwhite(100,333)))*EnvGen.ar(Env.perc(a/2,a/2,0.1),Impulse.ar(1/a)),0)}.play; /* by redfrik */ r{99.do{|i|x={Pan2.ar(SinOsc.ar(i+1,SinOsc.ar((i%9).div(3)*100+(i%9)+500),0.03) ...
-
... = 1, pan = 0, modFreqRatio = 2, modDepth = 1; var carrier, modulator, snd, env; env = Env.adsr( attackTime: att, decayTime: dec, sustainLevel: sus, releaseTime: rel, peakLevel: amp ).kr(gate: gate); car ...
-
... re PMOsc.ar(80.exprand(10000), 1.exprand(200), 1.exprand(20)), pan, EnvGen.kr(Env(Array.rand(4, 0, 0.05.rrand(0.4)).add(0), Array.rand(3, 0.1, 1.2).add(0.1), 5.rand2), levelScale: amp, timeScale: stretch, doneAction: 2) ); ...
-
... neFill(384, 1/(1..8),0!8); //other options for wavetable 0, or DIY: //wt0 = Env({rrand(-1.0,1.0)}!8, {rrand(0,20)}!7, {rrand(-10,10)}!7).asSignal(384); //wavetable 1: partials 1,3,4,5 at various amplitudes and phases wt1 = Signal.si ...
-
... es in the value or slope (e.g. non-bandlimited sawtooth or pulse waves). x = Env([0, 0.75, -1, 1, 0], [0.1, 0.01, 0.4, 0.2]).discretize(128); - Inter-sample distortion is clearly visible for 0 dBFS pulse waves. ( var stream = Pstu ...
-
... e_bus)/(2**l) }; // beat rate: ~d.(l) means rate of beatrate**l ~e = {|p,d,a,c|EnvGen.ar(Env.perc(a?0.05,d?0.5,1,c?(-4)),p).lag(1e-3)}; // trigable perc envelope: triger, duration, attack, curve ~sn = {|...a|SinOsc.ar(*a)}; ~w = {|p,mn, ...
-
... on[1]!=0).if( {{PlayBuf.ar(sfBuf.numChannels, sfBuf,1,1,sfSelection[0])* EnvGen.ar( Env.new([0,1,1,0],[0.001,0.998,0.001]*sfSelection[1]/sfSampleRate), doneAction:2)}!2 }.play, {"Select a region in the Sound file View ...