-
... resonance; // fig 44.2: Speed Control Envelope motorEnv = (Line.ar(0,1,runtime * 20, doneAction:2)) * 2; motorEnv1 = (1 - motorEnv.min(1)).pow(6); // fast growing curve motorEnv2 = motorEnv.max(1) - 1; ...
-
... , pan=0, filter=22000, hiPass=20, vol=1| var snd = HPF.ar((LPF.ar(FSinOsc.ar(Line.ar(freq, freq*bend, sustain).clip(10,22000)), filter)), hiPass); var env = EnvGen.ar(Env.sine(sustain, amp * AmpComp.ir(freq) * 0.5), doneAction: 2); v ...
-
... rse) }); s.sync; /* Increase the number 1 at the end of the following line if the sound is broken */ convTime= inSrc.duration+([irL.duration, irR.duration].sort[1]) + 1; fftsize= 2048; bufsizeL= PartConv.calcBufSize(fftsi ...
-
... .boot; NdefMixer(s); ( // put all programs into buffers. re-running these lines will start with a new set of programs that will -- over a long time period -- relax their amplitudes and complexity. q.buffers = q.programs.collect{|prog ...
-
... gle(5), doneAction:2); fmod = findex * SinOsc.kr(frate, mul:0.5, add:0.5) * Line.kr(0, 1, 7); sigA = Pulse.ar(freq + fmod, LFNoise2.kr(1).range(0.2, 0.8) ); sigB = VarSaw.ar(freq + fmod); sigC = WhiteNoise.ar() * 0.125; ...
-
... mul: env * modulator); carrier = Mix.ar(carrier); carrier = LPF.ar(carrier, Line.kr(10000, 1000, att)); Out.ar(0, Pan2.ar(carrier, pos)); }).add; SynthDef("fm1", {arg freq = 440, modfreq = 5, modindex = 10, amp = 0.1, pos = 0, gat ...
-
... mul: env * modulator); carrier = Mix.ar(carrier); carrier = LPF.ar(carrier, Line.kr(10000, 1000, att)); Out.ar(0, Pan2.ar(carrier, pos)); }).add; SynthDef("fm1", {arg freq = 440, modfreq = 5, modindex = 10, amp = 0.1, pos = 0, gat ...
-
... 0.01, rel = 0.3; var carrier, modulator, freqdev, env, modfreq; modindex = Line.kr(modindex, 1, att); modfreq = freq / 2; freqdev = modfreq * modindex; modulator = Pulse.ar(freq: modfreq, mul: freqdev); carrier = SinOsc.ar(freq ...
-
... (0)) }.play; // sing, whistle, or play a steady held note, then execute this line of code: c = Synth(\prm_GrainFreeze, [\inBus, a, \outBus, 0, \attackTime, 4], addAction: \addToTail); // play at half the speed, (one octave down): ...
-
... period, string; freq = freq * [0.99,1,2,0.98]; pluck = PinkNoise.ar(Decay.kr(Line.kr(1, 0, 0.05), 0.05)); period = freq.reciprocal; string = CombL.ar(pluck, period, period, 4); out = LeakDC.ar(LPF.ar(string, 12000)); out = Splay.ar(o ...