Re: DynamicsCompressorNode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/02/2013 05:22 PM, rbj@audioimagination.com wrote:
> you can have compressors (more precisely "limiters") that look
> ahead (so there is a built-in delay if it runs real-time) so that
> when a spike is detected  it can adjust the gain in a manner to
> duck that spike, rather than clip it.

Well, lookahead can be bad for several reasons. It not only adds delay
to the audio chain, but any change in the gain will create artefacts
(sound getting muted before an attack). For very short spikes, I think
soft-clipping can actually do a better job. I have an implementation
that can work with no added delay:
https://git.xiph.org/?p=opus.git;a=blob;f=src/opus.c;hb=HEAD#l36

 Jean-Marc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRgt1ZAAoJEJ6/8sItn9q9+ygIAJtwp7U7dllBNhfPfib5Xaxm
8OexaOJFBUtG3JeACa/XG8QP9+enG36RbfXu6/yEy6mw9s1fg7Dg/Dq/6wOWcPXN
h4jqi78ziZbxEV/aSGzY0Gf9GFhREoEpF34v4AjzOoxJLCb6aRsiXKW2Un2VeKlM
xkeT6XEMXZbGiqZuikhBDkV6TrgHOqaVWD4HD6DQeBUDKqJiJmiL4lRPtuRm47lg
JwZme2AP9Kq23I7tx/ZuPUqngEzj8KGepq6qpS+6g2sgjKX1JpYDd1MaWaJ19eSK
ieAfKud9aUfFExt5fR+66pAYE2cnDcYD9FWTLp0GBM3h1VVo/YomE+4eXJZ01B8=
=419Y
-----END PGP SIGNATURE-----

Received on Thursday, 2 May 2013 21:41:13 UTC