Re: [linux-audio-dev] acid, linux

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] acid, linux
From: Paul Kellett (paul.kellett_AT_maxim.abel.co.uk)
Date: to joulu  02 1999 - 13:21:48 EST


> someone should implement a logarithmic/exponential clipping function
> that asymptotically approaches ((2^bits_per_sample)-1) once the sample
> amplitude exceeds ((2^bits_per_sample)-some_threshold).
>
> the result is tape-like limiting. its very nice. you avoid
> transient-induced clipping.

You may as well use a _real_ limiter - no distortion until you start driving
it really hard. Simple example - limits mono floating-point data to +/-1:

 rec=(sig>0.f)? sig : -sig; //rectify signal
 env=(rec>env)? rec : env*rel; //slow release envelope
 if(env>1.f) sig/=env; //limit

Paul.

-- 
paul.kellett_AT_maxim.abel.co.uk
http://www.abel.co.uk/~maxim/


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : pe maalis 10 2000 - 07:23:26 EST