-
... to be used // example: ( // load a synthdef s.boot; SynthDef ( "gpdef" , { arg out=0, freq=440, sustain=0.05, amp=0.1, pan; var env; env = EnvGen .kr( Env .perc(0.01, sustain), doneAction:2) * amp; Out .ar(out, Pan2 .ar( SinOsc .ar(freq, 0 ...
-
SynthDef("rissetBell", { arg out = 0, pan = 0, freq = 400, amp = 0.1, att = 0.005, rel = 2, gate = 1; var amps = #[1, 0.67, 1, 1.8, 2.67, 1.67, 1.46, 1.33, 1.33, 1, 1.33]; var durs = #[1, 0.9, 0.65, 0.55, 0.325, 0.35, 0.25, 0.2, 0.15, 0.1, ...
-
... ions amp = 0.2, freq = 440, pan = 0, att = 0.001, sus = 1, rel = 0.5, gate = 1, out = 0, //Noise Arguments (mainsDepth is 0 to 1) noiseAmp = 0.06, mainsDepth = 0.1, mainsHz = 50, //Sine Arguments vrate = 2, vdepth = 0.005, sineClip = 0.825; ...
-
... 00. Getting Started With SC The previous section demonstrated how to use data routines to generate sequences of synthesis parameters. However, writing a routine with explicit yields is not a very convenient syntax. Since this is an essenti ...
-
... n }); ) // Pxrand used as a sequence of pitches: ( SynthDef(\help_sinegrain, { |out = 0, freq = 440, sustain = 0.05| var env; env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar(freq, 0, env)) }). ...
-
... ider one: By Josh Mitchell 11/19. */ SynthDef("phazer", { arg //Standard Values out = 0, pan = 0, freq = 440, amp = 0.5, gate = 1, att = 1, dec = 3, sus = 0, rel = 1.5, crv = -4, //Other controls rq = 0.5, rate = 1, minfreq = 100, maxfreq = ...
-
... true); s.volume = -20; s.volume = 0; s.mute; s.unmute; ( SynthDef(\freqlfo, { |out, rate = 5, low = 200, high = 800| Out.kr(out, LFDNoise3.kr(rate).exprange(low, high)); }).add; ) s.addr = ~saveAddr; o = OSCBundle.new; o.addPrepare([\d_rec ...
-
... add) BPZ2.kr(in, mul, add) A special case fixed filter. Implements the formula: out(i) = 0.5 * (in(i) - in(i-2)) This filter cuts out 0 Hz and the Nyquist frequency. Compare: { WhiteNoise .ar(0.25) }.play; { BPZ2 .ar( WhiteNoise .ar(0.25)) ...
-
rough sketch of chicago minor chord pad thing SynthDef(\ChicagoPad, { |out = 0, freq = 440, cutoff = 500, amp = 0.2| var snd; freq = freq + SinOsc.kr(0.1, 0, 1, 20); snd = Saw.ar([freq, freq+1, freq-1, freq*3/2, freq*6/5])*0.1; snd ...
-
... , {argnextTime = 0.5, bufnum = 0, freq = 80, envLev = 1.0; var env, osc, sum, out; env = EnvGen.kr(Env.new([0, 1, 1, 0], [0.1, 0.98, 0.1]), levelScale: envLev, timeScale: nextTime*0.98, doneAction: 2); osc = Osc.ar(b.bufnum, [freq, fr ...