-
... ect( { | item, i | item.wrap(domain.min[i], domain.max[i]) } ).asArray ; }; }, 'fold', { ^{ | value, domain | value.collect( { | item, i | item.fold(domain.min[i], domain.max[i]) } ).asArray; }; }, 'values', { ^{ | value, domain | domain[2] ...
-
... t the last known value \clip: limits the values to the outer bounds of toRange \fold: mirrors values that are out of toRange back in \wrap: wraps values around toRange \none: no clipping; values outside of fromRange will be extrapolated out ...
-
/* Wavefolding as in (input).fold(-1, 1), but it's rounded out instead of a sharp switch at input amplitudes of 1. It uses y=sin(x) as a transfer function, so I included a phase offset (which makes a full loop around the circle as it goes f ...
-
... t the last known value \clip: limits the values to the outer bounds of toRange \fold: mirrors values that are out of toRange back in \wrap: wraps values around toRange \none: no clipping; values outside of fromRange will be extrapolated out ...
-
... ); direction = -1; }, \alternate, { case { current >= size} { current = current.fold(0,size-1); direction = -1; } { current < 0 } { current = current.fold(0,size-1); direction = 1; }; }, \random, { current = size.rand; }, \off, { current = ...
-
... ; direction = -1; }, \alternate, { case { current > ttime } { current = current.fold(0.0, ttime); direction = -1; } { current < 0 } { current = current.fold(0.0, ttime); direction = 1; }; }, \back_at_end, { current = current.clip(0.0, ttime ...
-
... .0 ); direction = -1; }, \alternate, { case { current > 1 } { current = current.fold(0.0,1.0); direction = -1; } { current < 0 } { current = current.fold(0.0,1.0); direction = 1; }; }, \off, { current = current.clip(0.0,1.0); direction = 1; ...
-
... .0 ); direction = -1; }, \alternate, { case { current > 1 } { current = current.fold(0.0,1.0); direction = -1; } { current < 0 } { current = current.fold(0.0,1.0); direction = 1; }; }, \off, { current = current.clip(0.0,1.0); direction = 1; ...
-
... im interface. imuvals = imuvals.collectInPlace { |val| (val + 0.2.rand2 * 0.95).fold2(8.0).round(0.01) }; tempval = (tempval + 3.rand2).fold(0, 100); anavals = anavals.collectInPlace { |val, i| (val + 0.05.rand2 * 0.95).fold(0, 1).round(0.0 ...
-
... blippoo box but without the distortion (unfortunately) var l1 = RLPF.ar(in ,f1.fold(20,20000).lag(0.05),r1);//lag is necessary to make sure the filter stays stable var l2 = RLPF.ar(in * -1,f2.fold(20,20000).lag(0.05),r2); l1 + l2; }; Ndef( ...