-
... 0.1); var pan= x.linlin(0, width, -1, 1); var src= SinOscFB.ar(freq+d, (d*0.01).clip(0, 1), amp); DetectSilence.ar(src, doneAction:2); OffsetOut.ar(out, Pan2.ar(src, pan)); }).add; s.sync; Synth(\main, [\in, 40, \out, 0]); ~ps= TraerParticl ...
-
... stln; } } *threshold_ { |val| if (val.isKindOf(SimpleNumber)) { threshold = val.clip(0.001, 1); syn !? { syn.set(\threshold, threshold) } }; } *stop { resp.disable; syn.free; syn = nil; this.post; } *post { "// measured latencies:".postln; ...
-
... textLeft = 2; this.drawShape(innerRect, scaledUserView.view.bounds.height); Pen.clip; // fill inside Pen.addRect( Rect( innerRect.left - 1, 0, innerRect.width + 1, scaledUserView.view.bounds.height ) ); event.getTypeColor.penFill(innerRect, ...
-
... ]); }).asPoint.yield; current = (current + ((direction * timer.value/time.next).clip2( 1.0e12 ))); switch( loop.next, \loop, { current = current.wrap( 0.0, 1.0 ); direction = 1 }, \backwards, { current = current.wrap( 0.0, 1.0 ); direction ...
-
... erhalten. tilt = if(bandEdges[b + 1] <= 120.0) { 0.0 } { ((cf - 120.0) / 580.0).clip(0.0, 1.0) }; bandEnergy[fr].put(b, bandEnergy[fr][b] * tilt); } }; // Zeitliche Glättung gegen frame-weise Energiesprünge (Knocken). // Etwas leichter als ...
-
... (2*(b.squared + c.squared)))) } // pitch tumble { ^asin((2 * (a * c + (b * d))).clip(-1.0, 1.0)); } // yaw rotate { ^atan2((2 * (a * d - (c * b))), (1 - (2*(d.squared + c.squared)))) } } + SimpleNumber { asQuaternion { ^Quaternion(this, 0.0 ...
-
... reqLag = 0.02, otLag = 0.02| var sig, env, freqs, amps; freqs = (freq * (1..8)).clip(20, 20000).lag(freqLag); amps = ((otAmps / ((1..8) ** dampExp)).normalizeSum * amp).lag(otLag); sig = SinOsc .ar(freqs, 0, amps); env = EnvGen .ar( Env .as ...
-
... The object knows the duration and file path of the soundfile, and can be set to clip off the start and end of the file. - start: region startoffset (samples or seconds) - end: end of the region (samples or seconds) - loop: loop mode on or o ...
-
... itGui also works m.switchSize(2); m.editGui.object_(~a); ~g = { LFDNoise3.ar(3).clip(0, 1) * GrayNoise.ar }; // remove the mixer individually ProxyMeter.removeMixer(m); // cleanup: // add mixer again for the test ProxyMeter.addMixer(m); // ...
-
... var roman = [\i, \ii, \iii, \iv, \v, \vi, \vii, \viii, \ix, \x]; ^roman.at(this.clip(0,9)); } }