The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [dynamic-range-compression]

This is for algorithms that compress the dynamic range of a signal, such as used in audio or image processing.

16 questions
Filter by
Sorted by
Tagged with
263 views

Compute dynamic range in a linear quantization system

I know the dynamic range is the ratio between the maximum amplitude and the minimum amplitude of a signal, calculating the dynamic range in dB I get a difference of logarithms: But why the dynamic ...
67 views

Sum of cosines as squashed as possible

I have 10 cosine waves of the form $\cos(2\pi(x f_n+\varphi_n))$, where $f_n$, the frequency, is an integer from 1 to 10 and $\varphi_i$, the phase, is a number from 0 to 1: s(x) = \sum\limits_{n=1}...
382 views

Dynamic range compression - Need pseudo algorithm for normalizing a signal

I have a signal that is NOT an audio signal (but looks like an audio signal - probably you can even "play" it). I would like to amplify the signal in regions where its amplitude is low. In very rare ...
55 views

Is there any python code for applying a-law/mu-law on 3D numpy array?

I have 3D numpy array of probabilities between [0,1], I need to emphasize on some area with lower probabilities. I was suggested to apply a-law and mu-law. I am wondering if there is python library/...
96 views

Dynamic compressor - ratio in logarithmic scale problem

I want to use decibels to describe compression ratio. So for example ratio 4:1 means that every 4 input decibels above threshold causes raise of output only 1 decibel. And I also want ratio to be ...
2k views

peak limiting/audio compression formula needed

I'm looking for a formula to effectively compress an audio waveform to limit peaks. This isn't an "automatic volume control" application where one would control amplifier gain to maintain a volume ...
35 views

Dynamics processor for speech - apply gain on delayed samples?

A Dynamics processor (limiter, compressor, expander, and gate) is calculating the output gain at some point in time, and it is applying this gain at some delayed point in time. This allows for ...
103 views

Fast method to decompress huffman and arithmetic encoded data

By nature, when decompressing huffman (and I assume also Arithmetic encoded data) we have to read it in bit by bit and then see how it traverses a huffman code tree that has the actual symbol value at ...
114 views

Can you recommend an efficient encoding algorithm for sound with long periods of silence?

As a side personal project, I'm coding an Android application that I plan to use to record the sounds of our first baby. I'm kind of new to the world of Android development and sound processing, so ...
128 views

Gain of resonating filters

I'm trying to make a music instrument based on a resonator with a high Q, such as Ableton's Corpus and Ableton's Resonator (I think the former is based on a simple 2nd order resonant filter while the ...
78 views

What does the operator 'Range Detector' do in this block diagram? How can it be modeled?

I'm trying to implement a 'Compressor/Expander/Noise gate' for automatic gain control of audio signals. The block diagram of the system is shown below: I don't understand how the 'Range Detector' ...
1k views

Differences between soft knee and hard knee in Dynamic Range Compression (DRC)?

I want to know more about where it is advantageous to use a soft knee and where and why a hard knee is preferred. Also I would like to get my hands on some good resources which talk about ...
2k views

A query on the non-uniform quantization

I have read that non-uniform quantization boosts the smaller amplitude signals by a large amount. However the larger amplitude signals receive a small gain. As shown in the below diagram (Compressor ...
203 views

Map the Amplitude Envelope from [dbmin,dbmax] to [-inf,dbmax]

I would like to map the envelope of a sound (which has max dB level = dbmax, and min dB level = dbmin) from [dbmin,dbmax] to ...