Re: [linux-audio-dev] LADSPA proposal ...

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

Subject: Re: [linux-audio-dev] LADSPA proposal ...
From: Marcus Andersson (marcus.t.andersson_AT_spray.se)
Date: Sat May 15 2004 - 12:46:47 EEST


Mike Rawes wrote:

> You're right - there's an asymptote at x=0 - there's no correct way of
>
>dealing with it. What I've done in the past is do linear conversion near
>0:
>
>to linear:
>value > e : log(value)
> < -e : -log(-value)
> : value / e
>
>to logarithmic
>value > 1 : exp(value)
> < -1 : -exp(-value)
> : value * e
>
>However, it is also perfectly valid to simply clip the lower bound. What
>isn't right is for a host to *assume* that the lower bound of a
>LOGARITHMIC
>port is always > 0. I myself want to be able to specify a logarithmic
>frequency port with range + / - 24000 for my oscillator plugins, without
>having a host break by doing log(-440) or something.
>
>

But how can the host know how close to zero the exp should become
linear? What do you do with a LOGARITHMIC parameter with the range -1.0
to 1.0? Something is missing here to make the LOGARITHMIC hint
unambiguous. But maybe that's not the goal of LADSPA. :(

Marcus


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

This archive was generated by hypermail 2b28 : Sat May 15 2004 - 12:48:01 EEST