Re: [fluid-dev] Purpose of dither?

2007-05-08 Thread Miguel Lobo
> 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

Re: [fluid-dev] Purpose of dither?

2007-05-08 Thread Mihail Zenkov
>> My English bad, but i try answer. >I am relatively sure that my native lanugage is the same as yours :) >and what you wrote in English is perfectly readible to me :) I'm glad :) > > Yes, I hear. > > 1. 16bit accuracy give 96 dB resolution. Human limit 120dB. > > 2. For mostly purpose 96 dB en

Re: Fwd: [fluid-dev] Fluidsynth changes

2007-05-08 Thread Paul Millar
Hi Ken, Of course IANAL, but naturally happy to share my opinion. When talking about libLO, the website states: "if you have a specific requirement for liblo in a close-source system then mail me and I may relicense it on an individual basis." Would the libLO people be prepared to relicense lib

Re: [fluid-dev] Purpose of dither?

2007-05-08 Thread Z F
Dear Mihail > My English bad, but i try answer. I am relatively sure that my native lanugage is the same as yours :) and what you wrote in English is perfectly readible to me :) > > > > First of all I do not understand why dithering is needed at all. > > All professional quality audio apps us

Re: [fluid-dev] Purpose of dither?

2007-05-08 Thread Mihail Zenkov
My English bad, but i try answer. > Just a few comments. > > First of all I do not understand why dithering is needed at all. All professional quality audio apps use dithering (from free software: jack, audacity, brutefir, etc). > 1.Do you mean that 16-bit accuracy is not enough and a human ea

Re: [fluid-dev] Purpose of dither?

2007-05-08 Thread Mihail Zenkov
On Tue, 8 May 2007 12:58:00 +0200 "Miguel Lobo" <[EMAIL PROTECTED]> wrote: > > > > http://en.wikipedia.org/wiki/Dither > > In our case we have TPDF. > > > Thanks, I should have thought of looking it up in Wikipedia. Is there any > reason why separate dither buffers are used for the left and rig

Re: [fluid-dev] Purpose of dither?

2007-05-08 Thread Z F
--- Mihail Zenkov <[EMAIL PROTECTED]> wrote: > On Tue, 8 May 2007 01:22:45 +0200 > "Miguel Lobo" <[EMAIL PROTECTED]> wrote: > > > Hi list, > > > > We have this code in fluid_synth.c: > > > > #define DITHER_SIZE 48000 > > #define DITHER_CHANNELS 2 > > > > static float rand_table[DITHER_CHANNEL

Re: [fluid-dev] Purpose of dither?

2007-05-08 Thread Miguel Lobo
http://en.wikipedia.org/wiki/Dither In our case we have TPDF. Thanks, I should have thought of looking it up in Wikipedia. Is there any reason why separate dither buffers are used for the left and right channel? Regards, Miguel ___ fluid-dev mailin

Re: [fluid-dev] Purpose of dither?

2007-05-08 Thread Mihail Zenkov
On Tue, 8 May 2007 01:22:45 +0200 "Miguel Lobo" <[EMAIL PROTECTED]> wrote: > Hi list, > > We have this code in fluid_synth.c: > > #define DITHER_SIZE 48000 > #define DITHER_CHANNELS 2 > > static float rand_table[DITHER_CHANNELS][DITHER_SIZE]; > > static void init_dither(void) > { > float d,