I would like to map the envelope of a sound (which has max dB level = dbmax, and min dB level = dbmin) from
Here is an example :
It's like some sort of dynamic compression (or rather dynamic range 'expansion' to be precise), but here the mapping is linear from
What's the simplest way to do this with an
x[n] array? (my input is a soundfile, not an envelope. Is there a simple method for working on envelope (envelope follower ?))
PS : not realtime processing. Thus I can pre-compute dbmax, dbmin.