-
... ode | switch (mode, 'free', { ^{ | value, domain | this.asOssiaVec(value) } }, 'clip', { ^{ | value, domain | this.asOssiaVec(value.collect( { | item, i | item.clip(domain.min[i], domain.max[i]); } )) }; }, 'low', { ^{ | value, domain | thi ...
-
... l }; if (spec.isNil or: spec == \none) { ^obj.set(paramName, (currVal + relVal).clip(0, 1)); }; currValNorm = spec.unmap(currVal); obj.set(paramName, spec.map(currValNorm + relVal)); } *getSpec { |obj, paramName| ^obj.getSpec(paramName); } ...
-
... eq * ((0..7)/7 - 0.5 * fspread + 1)); sig = sig * ( sig/(sig+1.1)*50 * env1 ).clip(0.5); sig1 = sig * (sig.abs > Rand(0.1,0.7)); sig = SelectX.ar( EnvGen.kr(Env([0,1,0],[0.1+Rand(0,2.0),0.1+Rand(0,2.0)]), 1), [sig, sig1]); sig = sig ...
-
... andomized amp envelope up and down between 0.005 and 0.03 mallet + (sing_switch.clip(0, 1) * sing); }.play ) // breakdown #6 // combining input and DynKlank // using only 3 filter freqs for a simple demo ( { arg sing_switch = 0; var snd, in ...
-
... ); sig = [ LFDNoise0.kr( freq ), LFDNoise1.kr( freq ), LFDNoise3.kr( freq ), LFDClipNoise.kr( freq ), ]; sig = Select.kr( type, sig ).linlin(-1,1,*range); UMapOut.kr(sig); }) .setSpec( \type, ListSpec([0,1,2,3], 0, [\step, \linear, \cubic, ...
-
... ], modSpeed = 1, modShape = 1, res = 0.5| var in; in = UIn.ar(0,1); freq = freq.clip(20,20000); in = class.ar( in, SinOsc.ar( modSpeed ).pow( modShape ).exprange( *freq ), res ); UOut.ar( 0, in ); }, [ ArgSpec('freq', [ 20.0, 20000.0 ], Ran ...
-
... ); sig = [ LFDNoise0.kr( freq ), LFDNoise1.kr( freq ), LFDNoise3.kr( freq ), LFDClipNoise.kr( freq ), ]; sig = Select.kr( type, sig ).linlin(-1,1,*range); UMapOut.kr(sig); }) .setSpec( \type, ListSpec([0,1,2,3], 0, [\step, \linear, \cubic, ...
-
... udesTypePop.value, 1, { //convert from midi velocities amps= amps.collect{|x| x.clip(0, 127)/127}; }, 2, { //convert from db amps= amps.collect{|x| x.dbamp}; } ); amps; }; amplitudesSendBut.action= { var amps, dest; amps= parseAmplitudes.va ...
-
... he parameter "a". // NB the parameter affects the amplitude, so this example is clipped { FincoSprottL .ar( SampleRate .ir, a: LFNoise0 .kr(1).range(1, 3)).poll(2).softclip * 0.3 }.play(s); An example utilising the three different outputs a ...
-
... | LeakDC.ar(in, leak) }, 1, (\leak: [0.5, 0.999, \exp]) ); OFX_Chain.add3( \rollClip, \filter -> { |in, clip=0.99, pole=0.2| OnePole.ar(in.clip2(clip), pole ** 0.7); }, 1, ( \clip: [0.0, 1, \amp], \pole: [0, 0.95, \lin] ) ); OFX_Chain.add3( ...