Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
34 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 ...
0
votes
1answer
32 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 ...
0
votes
0answers
76 views

In µ law or A law companding, how reciprocal of the slope of compression curve is equal to quantum steps?

I was studying quantization and stepped on companding. The book I am following is Digital Communications by Simon Haykin. The book while discussing companding states that: For a given value of µ, ...
0
votes
0answers
59 views

Standard Method for Multiband Compression

I am looking into designing a multi-band audio compressor program and was wondering if anyone can explain how such programs go about separating and processing the different frequency bands. The way ...
0
votes
2answers
132 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 ...
3
votes
4answers
109 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 ...
1
vote
0answers
100 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 ...
2
votes
1answer
53 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' ...
3
votes
2answers
1k 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 ...
1
vote
2answers
92 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 ...
0
votes
2answers
302 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 ...
5
votes
2answers
762 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 ...
0
votes
0answers
383 views

Dynamic range compression in the frequency domain?

I'm trying to do frequency-band specific dynamic range compression (like multi-band compression) and was thinking of whether dynamic range compression is doable in the frequency domain or whether it's ...
0
votes
1answer
199 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 ...
7
votes
2answers
7k views

Help implementing audio dynamic range compression

I am trying to implement audio dynamic range compression in JavaScript (not using web audio API). There is a lot of articles for sound technicians, and some high level documentation, but I couldn't ...
9
votes
1answer
1k 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 ...