Programmer Guide/SPU Reference/LIMITER: Difference between revisions
From STX Wiki
Jump to navigationJump to search
No edit summary |
|||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
Apply limiter function to a signal. | Apply a non-linear limiter function to a signal. | ||
==<code>[SPU LIMITER <var>X TYPE MAX LIM</var> OUT <var>Y Q</var>]</code>== | ==<code>[SPU LIMITER <var>X TYPE MAX LIM</var> OUT <var>Y Q</var>]</code>== | ||
{|class="einrahmen" | {|class="einrahmen" | ||
Line 39: | Line 39: | ||
|<math>1-(1-k) \cdot e^{-\frac{z-k}{1-k}}</math> | |<math>1-(1-k) \cdot e^{-\frac{z-k}{1-k}}</math> | ||
|} | |} | ||
:with: <math> | :with: <math>z_i = \frac{|x_i|}{MAX}, k = \frac{LIM}{MAX}</math> | ||
Revision as of 10:51, 9 May 2011
Apply a non-linear limiter function to a signal.
[SPU LIMITER X TYPE MAX LIM OUT Y Q]
input | description | data type | value type | default value |
---|---|---|---|---|
X | input signal | number, vector | variable | |
TYPE | limiter function ( RECTANGLE, ATAN, EXPONENTIAL ) |
number (int.), string | constant | 0 (= RECTANGLE )
|
MAX | maximum value; 0 < MAX | number | constant | 1
|
LIM | limiter start value; 0 < LIM ≤ MAX | number | constant | 1
|
output | description | data type | value type | comment |
Y | limited signal | same type as A | variable | |
Q | overload ratio | number | variable |
- Description
This SP-atom applies a non-linear magnitude weighting (= limiter function) to the signal. The limiter function is only applied if the absolute value of the signal magnitude is higher than the specified limiter start magnitude LIM. For the limiter function, the following algorithm is used:
The limiter function is selected by the input TYPE.
TYPE limiter function f(zi) 0
orRECTANGLE
1
orATAN
2
orEXPONENTIAL
- with:
The output Q (overload ratio) is set to the relative number of limited (changed) samples.
- See also
<SP-atoms>