On Sun, 2007-03-18 at 23:47 +0200, Mihail Zenkov wrote:
> > > What about 'internal clipping', how can i reproduce this?
> > 
> > I notice that when playing many notes of an instrument it starts
> > sounding clipped, but the output going to the sound card is not full
> > output.  Lowering the synth.gain parameter of course helps this.  It
> > just seems like FluidSynth is rather sensitive to gain problems.  I'm
> > curious how other synthesizers usually handle this.  Having something
> > like automatic gain, would likely cause issues too.
> 
> Output volume should by:
> 
> float out = 0;
> for (i=0; i < num_notes; i++)
>       out += note_vol[i] ;
> out *= gain;
> 
> If we want press five keys together without any clipping, we should set
> gain=0.2. Right?
> 
> Or fluidsynth have case, when out < 1, but you hear clipping?
> 

As long as that seems like a normal way of handling clipping, then I
suppose its OK.  I was just curious if there are any more elegant
solutions.  Unfortunately I'm no DSP expert, but I get by OK :)  Cheers!
        Josh




_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to