-
... lean logical And Boolean || Boolean logical Or When a function is the second operand, these operators perform short-circuiting (i.e., the function is executed only when its result would influence the result of the operation). This is recomm ...
-
... 5,1) * 0.035 }, \legato, 0.3, \release, 2, \root, -30, \pan, Pfunc({0.5.rand2}), \rez, Pfunc({0.7.rand +0.3}), \amp, 0.2).play; ) // now you can change some parameters of the LFOs in the control busses ~lfo1.set(\fmax, 800) ...
-
... .at(selected).asString } maxIndex { ^list.size } choose { this.select(list.size.rand) } children { ^list } /* do not pre-load the children, just the initially selected one (the source) and the enveloped players prepareChildrenToBundle { arg ...
-
... Level: amp, releaseTime: rel).kr(gate: gate); saw = Saw.ar(freq: freq * Array.rand(16, 0.99, 1.01), mul: env / 3); sine = SinOsc.ar( freq: freq * [0.5, 1, 2], mul: env * [1, 0.5, 0.4] ).tanh.distort / 4; snd = saw + sine; sn ...
-
RandIDAllocator { classvar <>dict; *value { |server| var count; server = server ? Server.default; dict = dict ?? { IdentityDictionary() }; count = dict[ server ] ? -1; count = (count + 1).wrap(0, server.options.numRGens - 1); dict[ server ] ...
-
... var accumPos = pos.sampleOn(clicks).inject([], { |state,x| state.addI(T(x,Color.rand)) }); accumPos.collect{ |positions| var drawings = positions.collect{ |tup| PenDrawedShapes([PenWedge(tup.at1,10,0,2*pi)], \fill, tup.at2, Color.red) }; va ...
-
RandIDAllocator { classvar <>dict; *value { |server| var count; server = server ? Server.default; dict = dict ?? { IdentityDictionary() }; count = dict[ server ] ? -1; count = (count + 1).wrap(0, server.options.numRGens - 1); dict[ server ] ...
-
... nvelopes ///////////////////////// carrFreqEnv = Env.new( levels: {1.0.rand}!numberOfPoints, times: ({1.0.rand}!(numberOfPoints-1)).normalizeSum ); modIndexEnv = Env.new( levels: {1.0.rand}!numberOfPoints, times: ({1 ...
-
... sig, freq; freq = \freq.ar(55); sig = SinOsc.ar(freq * [1, 2.1, 3.2, 4.5], Rand(0, 1), [1, 0.3, 0.2, 0.1]) * (1 + (3 * Env.perc(0, 1, curve: -8).ar)); sig = sig * Env.perc(0.001, [0.51, 0.3, 0.2, 0.1], curve: 4).ar; sig = sig.sum; ...
-
... num, BufRateScale .kr(inbufnum)); 4.do({ source = AllpassN .ar(source, 0.050, [ Rand (0, 0.05), Rand (0,0.05)], 1) } ); RecordBuf .ar([source * gain], outbufnum, loop:0); Out .ar(0, (source * gain).dup); }).store; ) // Now we'll run the Syn ...