[sdiy] Best software noise algorithm?
Rainer Buchty
rainer at buchty.net
Thu Feb 18 16:51:11 CET 2010
On Thu, 18 Feb 2010, Antti Huovilainen wrote:
> Example code for the in-loop part follows:
> ; calculate seed = (seed * a + c) & 65535
> ; w0 = seed
> ; w1 = temp
> ; w2 = a = 20077
> ; w3 = c = 12345
>
> ; setup
> mov w2, 20077
> mov w3, 12345
>
> ; loop
> mul.uu w0, w2, w0
> add w0, w3, w0
And where does w1 come into play here?
Is it
mul.uu w1,w2,w0
add w0,w3,w1
or was w1 just testing the attention of your readers? :)
Rainer
More information about the Synth-diy
mailing list