Programmer Guide/SPU Reference/LIMITER: Difference between revisions
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
\end{cases} | \end{cases} | ||
</math> | </math> | ||
Line 134: | Line 104: | ||
;<var>Q</var> | ;<var>Q</var> | ||
The output <var>Q</var> (overload ratio) is set to the relative number of limited (changed) samples. | |||
<math>Q = \frac{changedSamples}{processedSamples}</math> | |||
;See also: | ;See also: | ||
<[[../#Signal Processing Atoms|SP-atoms]]> | <[[../#Signal Processing Atoms|SP-atoms]]> | ||
<!-- AN, 2.5.2011 --> | <!-- AN, 2.5.2011 --> |
Revision as of 10:18, 9 May 2011
Apply limiter function to a signal.
Contents
[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:
LIMITER - amplitude limiter (non-linear)
with:
x, y | input and output signal sample |
LIM, MAX | limiter start amplitude and maximum signal amplitude |
f() | limiter function selected by input TYPE |
Table: Limiter functions{| |- |The value of TYPE |The limiter function f(z) |- |0 or RECTANGLE |File:1241.png ('cut-off') |- |1 or ATAN |File:1242.png |- |2 or EXPONENTIAL |File:1243.png |}
with:
The output Q is set to the relative number of processed samples:
Q = number of changed samples / number of processed samples
Usage:
LIMITER X TYPE MAX LIM
Inputs:
- X
- The signal vector or sample.
- TYPE
- The type of limiter function (see table above).
- MAX
- The maximum magnitude (full attenuation).
- LIM
- The limiter start magnitude. This value must be less than MAX.
Outputs:
- Y
- The limited signal (the same type as X).
- Q
The output Q (overload ratio) is set to the relative number of limited (changed) samples.
- See also
<SP-atoms>