AudioLimiter: Difference between revisions
From Avisynth wiki
Jump to navigationJump to search
Raffriff42 (talk | contribs) redirect for convenient searching |
AudioLimiter: add documentation |
||
| Line 1: | Line 1: | ||
{{FilterCat|External_filters|Plugins|Audio_filters}} | |||
{{ | {{Filter3 | ||
| dimzon | |||
| 2006-03-14 | |||
| 3=[https://forum.doom9.org/attachment.php?attachmentid=6586&d=1167241138 AudioLimiter-2006-03-14.zip] | |||
| 4=Audio filters | |||
| 5=Closed source | |||
| 6=[https://forum.doom9.org/showthread.php?t=108470 Doom9 Forum]}} | |||
== Description == | |||
Pupose: | |||
To increase volume for silent sounds a lot, to increase volume for middle-volume sounds a little and to keep hi-volume sounds untouched.<br> | |||
This must help to increase volume for speech/dialog without increasing volume for shoots, etc. | |||
Math explained: | |||
<pre> | |||
for exponential: | |||
output = (input<0?-1:1)*(pow(10.0f, tanh( factor * log10(1 + abs(input)*9))/tanh(factor) ) - 1)/9 | |||
for linear: | |||
output = tanh( factor * input) / tanh(factor) | |||
</pre> | |||
<br> | |||
== Requirements == | |||
* [x86]: [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.5.8 or greater] | |||
* Supported color formats: N/A | |||
<br> | |||
== [[Script variables|Syntax and Parameters]] == | |||
:{{Template:FuncDef|ExpotencialLimiter(clip, float "factor")}} | |||
:{{Template:FuncDef|LinearLimiter (clip, float "factor")}} | |||
:{{Template:FuncDef|WavGainLimiter(clip, float "factor")}} | |||
<br> | |||
::{{Par2| |clip| }} | |||
:::Input clip; audio must be float, use [[ConvertAudioToFloat]] if needed. | |||
<br> | |||
::{{Par2|factor|float|1.0}} | |||
:::<code>factor</code> - proposed values are 1.0...5.0, default is 1.0 | |||
:::! Higher factor values increases the effect but can produce artifacts. | |||
<br> | |||
-------------- | |||
:{{Template:FuncDef|ExpotencialLimiter(clip, float "curve")}} | |||
<br> | |||
::{{Par2| |clip| }} | |||
:::Input clip; audio must be float, use [[ConvertAudioToFloat]] if needed. | |||
<br> | |||
::{{Par2|curve|float|0.7}} | |||
:::<code>curve</code> - proposed values are 0.0...1.0, default is 0.7 | |||
<br> | |||
== Examples == | |||
WavSource(...) | |||
ConvertAudioTofloat() | |||
Normalize() | |||
LinearLimiter(2.0) | |||
<br> | |||
== Changelog == | |||
Version Date Changes<br> | |||
2006/03/14 - latest release | |||
<br> | |||
== Archived Downloads == | |||
{| class="wikitable" border="1"; width="600px" | |||
|- | |||
!!width="100px"| Version | |||
!!width="150px"| Download | |||
!!width="150px"| Mirror | |||
|- | |||
!2006-03-14 | |||
|[https://forum.doom9.org/attachment.php?attachmentid=6586&d=1167241138 AudioLimiter-2006-03-14.zip] | |||
|[https://web.archive.org/web/20200620173031if_/https://files.videohelp.com/u/223002/AudioLimiter-2006-03-14.zip AudioLimiter-2006-03-14.zip] | |||
|} | |||
<br> | |||
==External Links == | |||
<br> | |||
<br> | |||
----------------------------------------------- | |||
'''Back to [[External_filters#Audio_Filters|External Filters]] ←''' | |||
Revision as of 19:32, 20 June 2020
| Abstract | |
|---|---|
| Author | dimzon |
| Version | 2006-03-14 |
| Download | AudioLimiter-2006-03-14.zip |
| Category | Audio filters |
| License | Closed source |
| Discussion | Doom9 Forum |
Description
Pupose:
To increase volume for silent sounds a lot, to increase volume for middle-volume sounds a little and to keep hi-volume sounds untouched.
This must help to increase volume for speech/dialog without increasing volume for shoots, etc.
Math explained:
for exponential:
output = (input<0?-1:1)*(pow(10.0f, tanh( factor * log10(1 + abs(input)*9))/tanh(factor) ) - 1)/9
for linear:
output = tanh( factor * input) / tanh(factor)
Requirements
- [x86]: AviSynth+ or AviSynth 2.5.8 or greater
- Supported color formats: N/A
- ExpotencialLimiter(clip, float "factor")
- LinearLimiter (clip, float "factor")
- WavGainLimiter(clip, float "factor")
- clip =
- Input clip; audio must be float, use ConvertAudioToFloat if needed.
- clip =
- float factor = 1.0
factor- proposed values are 1.0...5.0, default is 1.0- ! Higher factor values increases the effect but can produce artifacts.
- float factor = 1.0
- ExpotencialLimiter(clip, float "curve")
- clip =
- Input clip; audio must be float, use ConvertAudioToFloat if needed.
- clip =
- float curve = 0.7
curve- proposed values are 0.0...1.0, default is 0.7
- float curve = 0.7
Examples
WavSource(...) ConvertAudioTofloat() Normalize() LinearLimiter(2.0)
Changelog
Version Date Changes
2006/03/14 - latest release
Archived Downloads
| Version | Download | Mirror |
|---|---|---|
| 2006-03-14 | AudioLimiter-2006-03-14.zip | AudioLimiter-2006-03-14.zip |
External Links
Back to External Filters ←