-
Summer : UGen { *ar { arg trig=0, step=1, reset=0, resetval=0; ^this.multiNew('audio', trig, step, reset, resetval) } *kr { arg trig=0, step=1, reset=0, resetval=0; ^this.multiNew('control', trig, step, reset, resetval) } checkInputs { ^thi ...
-
... (\freq.kr([440, 441])); var env = EnvGen.ar(Env.perc(releaseTime: \dur.kr(1)), \trig.kr(0), doneAction: Done.pauseSelf); OffsetOut.ar(\out.ir(0), x * env * \amp.kr(0.5)); }).add; //Writes to the correct busses... This allows for interplatio ...
-
... q=220, bowpressure = 64, bowposition = 64, vibfreq=64, vibgain=64, loudness=64, trig = 1, mul = 1.0, add = 0.0; ^this.multiNew('control', freq, bowpressure, bowposition, vibfreq, vibgain, loudness, trig).madd(mul, add) } } StkMandolin : UGe ...
-
... Scale = min( windowSize, bufSize / sampleRate ); Mix.fill(overlaps,{ arg i; var trig; // trigs offset equally trig = LFPulse.kr( windowSize.reciprocal , 1.0 / overlaps * i //* 2pi , 1.0 / overlaps); PlayBuf.ar( sample.numChannels, sample.bu ...
-
TRand triggered random number generator TRand.kr(lo, hi, trig) TRand.ar(lo, hi, trig) Generates a random float value in uniform distribution from lo to hi each time the trig signal changes from nonpositive to positive values ( { var trig = ...
-
... epeats structurally related: Pshuf see also: Demand // example ( { var a, freq, trig; a = Dseq ([ Dshuf ([1, 3, 2, 7, 8.5], 3)], inf ); trig = Impulse .kr( MouseX .kr(1, 40, 1)); freq = Demand .kr(trig, 0, a) * 30 + 340; SinOsc .ar(freq) * ...
-
MeanTriggered : Filter { *ar { arg in = 0.0, trig=0.0, length = 10, mul = 1.0, add = 0.0; ^this.multiNew('audio', in, trig, length).madd(mul, add) } *kr { arg in = 0.0, trig=0.0, length = 10, mul = 1.0, add = 0.0; ^this.multiNew('control', ...
-
CoinGate statistical gate *kr(prob, trig) *ar(prob, trig) When it receives a trigger, it tosses a coin, and either passes the trigger or doesn't. prob value between 0 and 1 determines probability of either possibilities trig input signal // ...
-
experiments in detecting fast onsets with Amplitude UGens by julianrohrhuber (julian.rohrhuber) Code
... kTime:0.01, releaseTime:0.01 // too soft to follow ( { var sig, amp, gate, trig; sig = LFSaw.ar(-200) * SinOsc.kr(20).range(0, 1); amp = Amplitude.ar(sig, attackTime:0.01, releaseTime:0.01); gate = amp > 0.2; trig = Trig1.ar(HP ...
-
// K2A Instr([\klankperc,\k2a],{ arg trig=0.0,sfreqScale=1.0,sfreqOffset=0.0,stimeScale=1.0,foldAt=0.1; Klank.ar( `[ FloatArray[ 87.041, 198.607 ], nil, FloatArray[ 0.165394, 0.15595 ] ], K2A.ar(trig), sfreqScale,sfreqOffset,stimeScale ).sq ...