LIMITER
Level meter (PPM). This atom is used for the level display in the recorder application.
Contents
[SPU PPM X TYPE T UNIT REF SIZE OUT Y M P]
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
The level meter value vt (t = sample index) is computed for each value xt of the input signal X. The last vt of an evaluation cycle is used to update the outputs Y and P.
TYPE computation of vt 0
orHOLD
1
orEXPONENTIAL
2
orRMS
The last value vt of an evaluation cycle is converted to the selected UNIT and stored in the output Y.
UNIT Y 0
orVALUE
1
orSQUARE
2
orRATIO
3
orDB
The output P is set to a value in range 0 to SIZE and can be used to display a level bar. For P always the logarithmic value (level in dB) is used. The level interval -140dB to 0dB is mapped to the position interval 0 to SIZE using a non-linear mapping function.
The output M is the maximum of all computed vt values converted to the selected output unit.
- See also
<SP-atoms>
LIMITER - amplitude limiter (non-linear)
The LIMITER
spatom applies a non-linear magnitude weighting 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:
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 relative number of limited (changed) samples.