Re: [linux-audio-dev] gain curves, interpolation, etc.

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

Subject: Re: [linux-audio-dev] gain curves, interpolation, etc.
From: Roger Larsson (roger.larsson_AT_norran.net)
Date: Wed Nov 29 2000 - 01:42:08 EET


Reread your mail after sending response...

On Tuesday 28 November 2000 23:34, Paul Barton-Davis wrote:
> i'm looking for ideas on efficient ways of representing a gain curve
> so that it can be applied to audio data and modified.
>
> originally, i thought i could use a break-point style structure, but
> i'm not convinced this makes a lot of sense or is even computationally
> feasible.
>
> basically, i want to attach the gain curve object to a data structure
> that represents a contiguous section of audio data, and apply the
> curve to the data as it is is read (i.e. multiply them). extreme
> efficiency is called for here. interpolating each and every frame's
> gain value will not work.

OK, now I got it - the other axis, of cause...
Precompute the derivate for each section (sample step).
 G = Gprev + derivate[section]
 Y = G * X

>
> another approach i considered was to store the actual gain values
> one-or-one in a data buffer parallel to the one that holds the audio
> data. but this doubles the data storage requirements for any sections
> of audio with non-unity gain, and my sense that this is too great a
> burden to pay.
>
> any ideas ?

/RogerL

-- 
--
Home page:
  http://www.norran.net/nra02596/


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

This archive was generated by hypermail 2b28 : Wed Nov 29 2000 - 02:53:23 EET