de.sciss.synth.ugen
A UGen that returns a unique output value from zero to one for each input value according to a hash function. The same input value will always produce the same output value. The input values can have any range.
// scramble mouse motion play { SinOsc.ar( Hasher.kr(MouseX.kr(0,10)).madd(300, 500) ) * 0.2 }
// distort pulse wave play { val lag = MouseY.kr(0.001, 0.1, 1) val freq = MouseX.kr(1, 500, 1) Hasher.ar(Lag.ar(LFPulse.ar(freq), lag)) * 0.2 }
input to calculate the hash function for
A UGen that returns a unique output value from zero to one for each input value according to a hash function. The same input value will always produce the same output value. The input values can have any range.
Examples