# Request Insight: Nyquist Prompt + "Amplify" tool to piecewise amplify 1ms segments to 1dB?

**URL:** <https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933>\
**Category:** GNU/Linux\
**Created:** [October 8, 2024, 1:37pm UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933 "2024-10-08T13:37:22Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkpsusmitaa](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/bkpsusmitaa/32/32205_2.png) [@bkpsusmitaa](https://forum.audacityteam.org/u/bkpsusmitaa)\
**Post date:** [October 8, 2024, 1:37pm UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/1 "2024-10-08T13:37:22Z")

</div>

My Leaders and Teachers,

I upgraded to Debian LXQt 12.6.0 last month, having Audacity 3.2.4. There is a little problem with the version, the horizontal slider doesn’t appear unless the window size is altered. But no issues with this.

I have been using the `Distortion` / `Leveller` for a long time. But even with 100% `Levelling fine adjustment` and the max 5 for the `Degree Of Levelling`, lower volume areas aren’t restored well.

 ![Original-18h25m25s08Oct24](https://forum.audacityteam.org/uploads/default/original/3X/7/d/7d7465335965556fe6e38338303e9fdb70093680.jpeg)

 ![LevelerFineAdj100pc,Deg5-18h22m30s08Oct24](https://forum.audacityteam.org/uploads/default/original/3X/0/c/0c27a94727a8a9d34828f758f2da68d63ac25ca3.jpeg)

 ![LevelerFineAdj0pc,Deg5-18h17m01s08Oct24](https://forum.audacityteam.org/uploads/default/original/3X/8/1/814f0a5d1da6284d447ab49f75eb5c409e1e7978.jpeg)

Also, the Bass sounds are enhanced more than the middle section and the treble.

Could I use the Nyquist Prompt with a code to piece-wise amplify, section by section to be amplified to a 1dB peak, irrespective of their original peaks?

Either  
(a) say each of 1ms segment for an audio file -  
Or  
(b) for the max peak for each of the segments between two zero audio signals as creating a boundary -

- to be amplified to a 1dB peak.

Is there already a Nyquist code available?

Of course, I am aware that the result might not be audibly optimal. But I want to experiment to later fine-tune the code further.

---

<div class="post-metadata">

**Author:** ![steve](https://forum.audacityteam.org/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@steve](https://forum.audacityteam.org/u/steve)\
**Post date:** [October 8, 2024, 2:03pm UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/2 "2024-10-08T14:03:27Z")

</div>

You could try the “AGC” plug-in: [AGC - Automatic Gain Control](https://forum.audacityteam.org/t/agc-automatic-gain-control/26706)

---

<div class="post-metadata">

**Author:** ![bkpsusmitaa](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/bkpsusmitaa/32/32205_2.png) [@bkpsusmitaa](https://forum.audacityteam.org/u/bkpsusmitaa)\
**Post date:** [October 12, 2024, 10:00am UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/3 "2024-10-12T10:00:38Z")

</div>

Apologise for the belated reply, Mr. Steve.  
Thank you.  
I will try and get back with my feedback.

[follow up]  
Used once. But consumes a lot of computational time (resource), easily more than 10 times for a 30 min mono audio file.

The output isn’t optimal even with Squelch Threshold set at -60dB, and Attenuation set at -30dB doesn’t yield a result better than my current approach: distortion → Leveller (max, i.e., `Noise Floor`: -80dB, `Fine Adjustment`: 100% and `Degree of Levelling`: 5) → Amplify → Equalizer (only Bass reduced to -8dB).

---

<div class="post-metadata">

**Author:** ![Trebor](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/trebor/32/45854_2.png) [@Trebor](https://forum.audacityteam.org/u/Trebor)\
**Post date:** [October 12, 2024, 2:02pm UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/4 "2024-10-12T14:02:24Z")

</div>

The plugin [LevelSpeech2.ny](https://forum.audacityteam.org/t/improved-leveling-for-speech/33258/27) is a compressor like AGC, but includes a limiter.

---

<div class="post-metadata">

**Author:** ![bkpsusmitaa](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/bkpsusmitaa/32/32205_2.png) [@bkpsusmitaa](https://forum.audacityteam.org/u/bkpsusmitaa)\
**Post date:** [October 13, 2024, 1:36pm UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/5 "2024-10-13T13:36:18Z")

</div>

> [@Trebor](#):
>
> plugin [LevelSpeech2.ny](https://forum.audacityteam.org/t/improved-leveling-for-speech/33258/27) … compressor … limiter

Thank you, Mr. Trebor, for replying to my post. I checked the page to understand and visualise [Compressor and Limiter](https://support.audacityteam.org/audio-editing/reducing-dynamic-range-compressor-limiter#compressor).

I also looked at the illustration, with scales for the `Compression Curve` and `Smoothing`, and a curve in the third quadrant of an x-y coordinate frame.

![Compressor](https://forum.audacityteam.org/uploads/default/original/3X/7/c/7c63a837a3a3f3f5ed367d2c6029acbf2ee068c4.png)

I must admit that I couldn’t understand the idea behind Compression. Smoothening I can intuitively understand.

Should I create a new post to receive clarifications and explanations on the aspect of Compression?

As a physicist, I am aware of the mathematical basis behind the `Attack` and `Release` as well as the other terms like `Decay` and `Sustain` involved in this framework.

But I am completely at sea for the terms like `Threshold`, `Make-up gain`, `Ratio` (could be between the Threshold and Make-up gain) as I don’t understand the basis behind these terms.

Please advise.

---

<div class="post-metadata">

**Author:** ![steve](https://forum.audacityteam.org/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@steve](https://forum.audacityteam.org/u/steve)\
**Post date:** [October 13, 2024, 2:08pm UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/6 "2024-10-13T14:08:49Z")

</div>

> [@bkpsusmitaa](#):
>
> But consumes a lot of computational time (resource), easily more than 10 times for a 30 min mono audio file.

On my computer it takes much less than 30 seconds to process a 30 minute track. Ensure that you are using the “latest version”. Also, the “Music” setting is faster than the default setting as it disables the optional filtering.

---

<div class="post-metadata">

**Author:** ![Trebor](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/trebor/32/45854_2.png) [@Trebor](https://forum.audacityteam.org/u/Trebor)\
**Post date:** [October 13, 2024, 3:07pm UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/7 "2024-10-13T15:07:54Z")

</div>

> [@bkpsusmitaa](#):
>
> I must admit that I couldn’t understand the idea behind Compression …  
> As a physicist … I don’t understand the basis behind these terms …

Here’s the science bit …

> **[GiannoulisMassbergReiss-dynamicrangecompression-JAES2012.pdf](https://www.eecs.qmul.ac.uk/~josh/documents/2012/GiannoulisMassbergReiss-dynamicrangecompression-JAES2012.pdf)**
>
> 630.99 KB

---

<div class="post-metadata">

**Author:** ![bkpsusmitaa](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/bkpsusmitaa/32/32205_2.png) [@bkpsusmitaa](https://forum.audacityteam.org/u/bkpsusmitaa)\
**Post date:** [October 14, 2024, 12:02am UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/8 "2024-10-14T00:02:59Z")

</div>

> [@steve](#):
>
> Ensure that you are using the “latest version”. Also, the “Music” setting is faster

I downloaded from the link that you’d given. I used the “Music” setting.  
I just posted my first experience. I will get back to the utility once the tasks I have are over.  
Thank you for your feedback. Such inputs help a great deal, Mr. Steve.

---

<div class="post-metadata">

**Author:** ![bkpsusmitaa](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/bkpsusmitaa/32/32205_2.png) [@bkpsusmitaa](https://forum.audacityteam.org/u/bkpsusmitaa)\
**Post date:** [October 14, 2024, 12:04am UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/9 "2024-10-14T00:04:51Z")

</div>

> [@Trebor](#):
>
> Here’s the science bit …

Thank you very much for the link, Mr. Trebor. Your promptness and kindness to support is admirable.

[postscript]  
It is a long paper in details, Mr. Trebor. Editing sound files is a necessity arising out of my hobby to record talks for later reference, not my profession. My interest is in HEP & Cosmology.

So I would have preferred a one page explanation. But thank you.

---

<div class="post-metadata">

**Author:** ![bkpsusmitaa](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/bkpsusmitaa/32/32205_2.png) [@bkpsusmitaa](https://forum.audacityteam.org/u/bkpsusmitaa)\
**Post date:** [October 14, 2024, 12:12am UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/10 "2024-10-14T00:12:42Z")

</div>

> [@Trebor](#):
>
> The plugin [LevelSpeech2.ny](https://forum.audacityteam.org/t/improved-leveling-for-speech/33258/27) …

The code bit enhances the Bass. So I used `Bass and Treble...` filter and applied -8dB bass reduction twice to get a desirable sound file.  
The processing computation is very fast. Finishes in less than a minute in my old computer.  
Thank you, Mr. Trebor.  
In the coming days I would thoroughly test Mr. Steve’s suggestion also, as he said that his suggestion takes a very short time to compute.

[postscript]

> [@bkpsusmitaa](#):
>
> I couldn’t understand the idea behind Compression

No wonder I couldn’t understand the terms in the afore-mentioned screenshot of the option window!

The correct meaning isn’t reflected by the word `compression` alone. The sub-phrase is `Range-Compression`, here the word _range_ means a complete set of values from zero amplitude to max amplitude for a peak or an RMS sampling bit. The further qualifying word for _Physical, Real Time Electronic devices_ is _Dynamic_.

I briefly read the paper, a link to which was posted by Mr. Trebor. To me, it appears neither very well composed, nor very attractive, nor optimally compact. But I would definitely thank Mr. Trebor for bringing it to my attention, as it provided a step for me to begin my exploration. _Better something than nothing_.

Aren’t there good books (illustrated, with diagrams, rather than word jungles) written on acoustical physics, particularly on these advanced acoustical aspects?

---

<div class="post-metadata">

**Author:** ![Trebor](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/trebor/32/45854_2.png) [@Trebor](https://forum.audacityteam.org/u/Trebor)\
**Post date:** [October 14, 2024, 4:15am UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/11 "2024-10-14T04:15:25Z")

</div>

> [@bkpsusmitaa](#):
>
> The code bit enhances the Bass. So I used `Bass and Treble...` filter and applied -8dB bass reduction twice to get a desirable sound file.

The order in which equalization and dynamic-range-compression are applied makes a difference to the final result: they are not [commutative](https://en.wikipedia.org/wiki/Commutative_property#Commutative_operations).

Advanced compressors have the option to reduce the bass in the signal used to control the compressor, in this one it’s called “LOW FREQ RELAX”.

 ![image](https://forum.audacityteam.org/uploads/default/original/3X/9/5/95aaa17131597a3384157832981b4c40e6ef4941.jpeg)

---

<div class="post-metadata">

**Author:** ![bkpsusmitaa](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/bkpsusmitaa/32/32205_2.png) [@bkpsusmitaa](https://forum.audacityteam.org/u/bkpsusmitaa)\
**Post date:** [October 14, 2024, 4:48am UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/12 "2024-10-14T04:48:51Z")

</div>

> [@Trebor](#):
>
> they are not [commutative](https://en.wikipedia.org/wiki/Commutative_property#Commutative_operations).

Ok. Yes …, that should be intuitively apparent, as the DRC is on a logarithmic sound sample, not a linear sample, and only an approximation limited by the carrier wave frequency.

I have a proposal/suggestion to make: wouldn’t DRC be better rationally represented by DARC? A represents _Amplitude_.

Also there are already terms like _Slope_,_Gradient_, _inflection_, _maxima_, _minima_, etc., in use for curves since 1700s. So don’t the introduction of new terms like _Knee_ to represent the same ideas in curves for acoustics lead to bloating/obfuscation?

---

<div class="post-metadata">

**Author:** ![DVDdoug](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/dvddoug/32/32925_2.png) [@DVDdoug](https://forum.audacityteam.org/u/DVDdoug)\
**Post date:** [October 14, 2024, 3:44pm UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/13 "2024-10-14T15:44:54Z")

</div>

> [@bkpsusmitaa](#):
>
> I must admit that I couldn’t understand the idea behind Compression. Smoothening I can intuitively understand.

The graph shows you what it’s doing except the axes are not labeled (X is input dB and Y is output dB). And it’s only 2-dimensional so it doesn’t tell you any thing about attack and release.

**My quick description of dynamic compression:**  
Compression reduces the dynamic range (or “dynamic contrast”) by making loud parts quieter and/or quiet parts louder. In practice, usually it “pushes down” the loud parts and then make-up gain is used to bring-up the overall volume, making everything louder.

Limiting is a fast-kind of compression. [Clipping](https://en.wikipedia.org/wiki/Clipping_(audio)) is a BAD kind of limiting.

Automatic gain control, automatic volume control, or leveling are a slow-kind of compression.

---

<div class="post-metadata">

**Author:** ![bkpsusmitaa](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/bkpsusmitaa/32/32205_2.png) [@bkpsusmitaa](https://forum.audacityteam.org/u/bkpsusmitaa)\
**Post date:** [October 19, 2024, 3:38pm UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/14 "2024-10-19T15:38:17Z")

</div>

> [@bkpsusmitaa](#):
>
> that should be intuitively apparent, as the DRC is on a logarithmic sound sample, not a linear sample, and only an approximation limited by the carrier wave frequency.

These aspects of approximation, sampling, carrier frequency, logarithmic scale, etc., ensure that both the positive and the negative peaks that are pushed down to the 0dB level can’t be restored from the final result. What is lost after application of a filter remains lost, never to be retrieved back from the resultant sound sample.

Though the matter may appear intuitively apparent, on hindsight it isn’t very simple to visualise. This compelled my return to this aspect once again to try a better clarity.

This issue isn’t a simple shifting of the amplitude axis to reduce the amplitude for a sound sample. While the amplitude peaks are attenuated, the 0 of the amplitude axis doesn’t shift to a new lower value. While 0dB is silence, marked by the speaker membrane at absolute unstretched rest, if the peak +ive amplitude means a maximum push forward of the stretched speaker membrane, the -ive amplitude is a maximum push inward, again stretched in the opposite direction.

Mr. Trebor, it seems that this time I have done justice to clarify your comment.

---

<div class="post-metadata">

**Author:** ![DVDdoug](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/dvddoug/32/32925_2.png) [@DVDdoug](https://forum.audacityteam.org/u/DVDdoug)\
**Post date:** [October 20, 2024, 4:28pm UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/15 "2024-10-20T16:28:59Z")

</div>

> [@bkpsusmitaa](#):
>
> While 0dB is silence, marked by the speaker membrane at absolute unstretched rest,

WRONG!!! 😉

Silence has an **amplitude** (not dB) of zero (zero volts if an electrical signal or a numerical value of zero in a digital file, etc.).

But decibels need a reference and **pure silence is minus infinity dB.** Minus infinity is easy in digital but it doesn’t exist acoustically or electrically. There is always some noise in the real-analog world.

If you try to calculate dB for an amplitude of zero your calculator or spreadsheet can’t do it and it will report an error.

**Digital** dB levels are measured in dBFS (decibels full-scale) where the **0dBFS reference is the “digital maximum” so digital dB levels are usually negative.**

The meters in Audacity show negative dB with 0dB as the maximum.

The scale to the left of the waveform that goes from -1 to +1 with zero (silence) in the center and it’s showing amplitude. + 1 and -1 represent +/-100% or 0dB.

Acoustic levels (loudness in the air) is measured in dB SPL where the 0dB reference is approximately the quietest sound humans can hear so **yes, with SPL, 0dB is “silence”** and SPL levels are positive.

With analog electrical signals there are several different 0dB references and you have to specify which one you are using (dbV, dBm, and dBu are common).

There is no automatic _calibration_ between digital and acoustic levels. It obviously depends on the volume control and other factors. But there is a direct _correlation_ and if you turn-down the digital level (more negative) by 3dB, the SPL will also go down by 3dB.

---

<div class="post-metadata">

**Author:** ![bkpsusmitaa](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/bkpsusmitaa/32/32205_2.png) [@bkpsusmitaa](https://forum.audacityteam.org/u/bkpsusmitaa)\
**Post date:** [October 21, 2024, 6:33am UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/16 "2024-10-21T06:33:27Z")

</div>

> [@DVDdoug](#):
>
> Silence has an **amplitude** (not dB) of zero

Yes, correct!  
dB needs a reference, a sound signal of a standard value from a standard distance.  
I would have edited the post, replacing the dB of _“0dB”_ in the said post with _Amplitude_.  
Thanks, Mr. DVDdoug, for pointing out.

---

<div class="post-metadata">

**Author:** ![system](https://forum.audacityteam.org/uploads/default/original/1X/81a69b20bcd548215067cfaceccc8a10bfa2d176.png) [@system](https://forum.audacityteam.org/u/system)\
**Post date:** [November 7, 2024, 1:37pm UTC](https://forum.audacityteam.org/t/request-insight-nyquist-prompt-amplify-tool-to-piecewise-amplify-1ms-segments-to-1db/119933/17 "2024-11-07T13:37:47Z")

</div>

Closed on November 7, 2024, 1:37pm UTC

This topic was automatically closed after 30 days. New replies are no longer allowed.
