A non-interpolating sound generator based on the difference equation:
x(n+1) = (a * x(n) + c) % m
The output signal is automatically scaled to a range of [-1, 1].
sclang code translation:
freq |
Iteration frequency in Hertz |
a |
Multiplier amount |
c |
Increment amount |
m |
Modulus amount |
xi |
Initial value of x |
mul | |
add |