-
... true); SynthDef("help-Osc", { |out = 0, bufnum = 0| Out.ar(out, Osc.ar(bufnum, XLine.kr(2000, 200), 0, 0.5) // modulate freq ) }).play(s, [\out, 0, \bufnum, b.bufnum]); ) ( s = Server.local; b = Buffer.alloc(s, 512, 1); b.sine1([1.0], true ...
-
... dfreq = 0.001, sustain, wobble = 3, boost = 1| var player,env,amp; freq = XLine.ar(freq,endfreq,sustain/4); freq = freq.cpsmidi + (LFNoise2.ar(3).range(-1,1) * (1/12)); freq = freq.midicps; env = Env.adsr(0.0001,0.01, 1, sustain ...
-
... // LFNoise quantizes time steps at high freqs, LFDNoise does not: { LFNoise2.ar(XLine.kr(2000, 20000, 8), 0.1) }.scope; { LFDNoise3.ar(XLine.kr(2000, 20000, 8), 0.1) }.scope; // use as frequency control ( { SinOsc.ar( LFDNoise3.ar(4, 400, 4 ...
-
... finished FreeSelfWhenDone.kr(src) Some UGens, such as PlayBuf, RecordBuf, Line, XLine, EnvGen, Linen, BufRd, BufWr and the Buffer delay UGens set a 'done' flag when they are finished playing. FreeSelfWhenDone will free the enclosing synth w ...
-
... = 0.3, sinFreq = 60, glissf = 0.9, att = 0.01, rel = 0.45, pan = 0; var gliss = XLine.kr(sinFreq, sinFreq*glissf, rel); var snd = SinOsc.ar(gliss); var env = Env.perc(att, rel).kr(doneAction: 2); snd = snd * env * amp; Out.ar(out, Pan2.ar(s ...
-
... LPF.ar( Mix.new(VarSaw.ar(freq + [0, Rand(-0.4,0.0), Rand(0.0,0.4)], 0, 0.3)), XLine.kr(Rand(4000,5000), Rand(2500,3200), 1) ) * Linen.kr(gate, 0.01, 0.7, 0.3, 2); OffsetOut.ar(out, Pan2.ar(z, pan, amp)); }, [\ir]).add;
-
... class methods Instance Methods Inherited instance methods Examples { BlitB3.ar(XLine.kr(10000, 20, 10), 0.5) }.play; //spot the aliasing { Impulse.ar(XLine.kr(10000, 20, 10), 0.0, 0.5) }.play; //sawtooth x = { LeakDC.ar(Integrator.ar(BlitB ...
-
... fSampleRate.ir(bufnum)) + (begin * BufFrames.ir(bufnum)); scratch = LFNoise2.ar(XLine.ar(12, 1000, sustain), 0.02 * BufSampleRate.ir(bufnum)); phase = phase + scratch; phase = phase.clip(0, BufFrames.ir(bufnum)); sound = BufRd.ar( numChanne ...
-
... so we manually boot the server Server.default.bootSync; that = That.amp(\foo, { XLine.kr(1.0, 1.0, dur: 100.0) }, {}, { Impulse.kr(10) }); 1.0.wait; this.assertEquals(That(\foo).latestValue[0], 1.0, "Latest value from analyzer does not matc ...
-
... .0 * squared(0.25)))).ampdb // -70dB // maximum is always 1: { LFGauss .ar(0.1, XLine .kr(1, 0.03, 1), 0, loop: 1) }.plot(1); // a gauss curve in sclang: (0..1000).normalize(-1, 1).collect( _ .gaussCurve(1, 0, 0.1)).plot; // rescale the fun ...