-
... snd = tanh(snd * 1.4); snd = RLPF.ar(snd, ffreq, 0.8); snd = snd * Env.adsr(0.1, 0.3, 0.7, 0.1).kr(2, \gate.kr(1)); snd = Pan2.ar(snd, \pan.kr(0), \amp.kr(0.1)); Out.ar(\out.kr(0), snd); }).add; ) ( Pmono(\bass, ...
-
... .collect { |x| x.miSC_Dmultiply(maxArgSize) }; ^((type == \fanOut) || (type == \envFanOut)).if { this.multiNewList([type, outRate, inOut, channelsArrayRef, fadeTime, stepTime, fadeMode, sine, equalPower, power, curve, allowTypeSeq, fadeRate ...
-
... t: true, addr: addr); ); ( ( SynthDef(\ping, {|freq, pan, amp=0.3| var e, z; e= EnvGen.ar(Env.perc(0, 0.1, amp), doneAction:2); z= SinOsc.ar(freq, 0, 0.2); OffsetOut.ar(0, Pan2.ar(z*e, pan)); }).add; ); ) // play a pattern on clock t: // cl ...
-
... abs ); car = SinOsc.ar( (freq * carPartial) + mod, 0, mul ); Out.ar( bus, car * EnvGen.kr(Env.sine(1), doneAction: Done.freeSelf, timeScale: ts) ) }).add; ) ( r = Routine({ 12.do({ Synth("fm2", [\freq, 400.0.rrand(1200), \carPartial, 0.5.rr ...
-
... fPrototype = {SynthDef(\xiiMushroom, {arg outbus=0, freq=440, pan=0, amp=1; var env, sine; env = EnvGen.ar(Env.perc, doneAction:2); sine = SinOsc.ar(freq, 0, env*amp); Out.ar(outbus, Pan2.ar(sine, pan)); }).play(Server.default)}.asCompileSt ...
-
... be using in this tutorial. The SynthDef is a simple sine wave with a percussive envelope. We will control the frequency, volume and the duration of a Synth . // make sure the server is booted: s.boot; // add our SynthDef to the server: ( Sy ...
-
... , { arg freq, sustain=1.0; var osc; osc = SinOsc .ar( [freq,freq+0.05.rand] ) * EnvGen .ar( Env .perc, doneAction: 2, levelScale: 0.3, timeScale: sustain ); Out .ar(0,osc); }).add; ) ///////////////////////////////////////////////////////// ...
-
... 1, impulseSus = 1, impulseDec = 1, impulseHold = 1, freq = 1200; var impulse = Env.new( levels: [0, 1, 1, 0, 0], times: [impulseAtt, impulseSus, impulseDec, impulseHold] ); ["impulse original duration", impulse.duration].postln; ["impulse ...
-
... be declared first { |vc| var temp, chain; if(vc.exists) { ~setVoicerParms.( vc.env[\argPairs].value(vc), vc.env[\postArgs].value(vc) ); // if(~child.notNil) { temp = vc.env[\extraChildParms].value(vc); if(temp.notNil) { temp.keysValuesDo { ...
-
... oot; ( SynthDef(\sample, {|dur| Out.ar(0, SinOsc.ar(440, 0, LFNoise1.ar(0.5)) * EnvGen.kr(Env([0.01, 1, 1, 0.01], [0.01, dur - 0.02, 0.01]), doneAction: 2)) }).add; SynthDef(\maxamptest, {|inbus| Maxamp.ar(In.ar(inbus, 1), SampleRate.ir / 1 ...