Re: [LAD] meterbridge 0.9.2 IEC-scale bug & fix

From: Chris Cannam <cannam@email-addr-hidden-day-breakfast.com>
Date: Wed Sep 26 2012 - 14:08:00 EEST

[This went rather in one ear and out the other when you posted it (if
that's possible for email) but I did eventually realise I'd seen it.]

On 11 June 2012 18:47, Robin Gareus <robin@email-addr-hidden> wrote:
> Anyway, some of you who package or copied code from meterbridge may be
> interested in this as well.
> [...]
> // def = (db + 60.0f) * 0.5f + 5.0f; // 5.0 .. 10.0 // bug? v0.9.2
> def = (db + 60.0f) * 0.5f + 2.5f; // 2.5 .. 7.5 // fix!

You're quite right -- I just double-checked the standard and your fix
is the right one. I have cargo-culted this code into a couple of other
places myself without ever seeing this mistake, so I'll have to fix
those.

Thanks for spotting this.

Chris
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Wed Sep 26 16:15:03 2012

This archive was generated by hypermail 2.1.8 : Wed Sep 26 2012 - 16:15:03 EEST