fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] Purpose of dither?


From: Miguel Lobo
Subject: Re: [fluid-dev] Purpose of dither?
Date: Wed, 9 May 2007 01:36:13 +0100
User-agent: KMail/1.9.3

> Yes, you absolutely right. But look at that code again:
>
>   for (c = 0; c < DITHER_CHANNELS; c++) {
>     dp = 0;
>     for (i = 0; i < DITHER_SIZE-1; i++) {
>       d = rand() / (float)RAND_MAX - 0.5f;
>       rand_table[c][i] = d - dp;
>       dp = d;
>     }
>     rand_table[c][DITHER_SIZE-1] = 0 - dp;
>
> We subtract previous dither value from current to prevent noise
> modulation. I use dither table to get maximum speed.

I actually felt curious about the subtraction of the previous value too.  What 
do you mean by "noise modulation"?  (And yes, this time I have looked it up 
in Wikipedia ;)).

Regards,
Miguel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]