Programmer Guide/SPU Reference/MUXIN: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(initial import)
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 109: Line 109:
|A<nowiki>-</nowiki>B
|A<nowiki>-</nowiki>B
|stereo sum/difference
|stereo sum/difference
|}
=====Pre/Post-processing and ppm-evaluation used by MUXIn and MUXOUT=====
The parameters 0-11 are used to control the processing modules which compute Ay(Ax) and By(Bx), and the parameters 12-14 control the ppm computation.
Parameter Table:
{|
|-
|Index
|Module
|Description
|-
|0
|AMP
|linear gain factor for signal A
|-
|1
|AMP
|linear gain factor signal B
|-
|2
|FLT
|filter mode:<code>0</code> - off (no filter)<code><code>1</code></code> - filter channel A<code><code>2</code></code> - filter channel B<code><code>3</code></code> - filter both channels
|-
|3
|FLT
|relative filter cutoff frequency (kcut):<code><code>0</code></code> - no filter<code>0 > kcut >= -1</code> - lowpass (<code>fcut - (1+kcut) * srate/2</code>)<code><code>0 < kcut <= 1</code></code> - highpass (<code>fcut = (1-kcut) * srate/2</code>)
|-
|4
|AGC
|compression / expansion mode<code><code>0</code></code> - off (no agc)<code><code>1</code></code> - apply agc to channel A<code><code>2</code></code> - apply agc to channel B<code><code>3</code></code> - apply agc to both channels<code><code>4</code></code> - apply agc to both channels with synchronous gain control
|-
|5
|AGC
|compression start amplitude (ac) in dB (<code>ac >= ax</code>)
|-
|6
|AGC
|compression gain slope (kc) (<code>0 <= kc <= 1</code>)
|-
|7
|AGC
|expansion start amplitude (ax) in dB (<code>ax <= ac</code>)
|-
|8
|AGC
|expansion gain slope (kx) (<code>0 <= kx <= 1</code>)
|-
|9
|AGC
|gain control averaging time (ta) in seconds (<code>0.01 <= ta <= 0.2</code>)
|-
|10
|AGC
|gain control slope duration (tg) in seconds (<code>0.01 <= tg <= 0.2</code>)
|-
|11
|AGC
|gain step (dg) in dB (<code>0.5 <= dg <= 3</code>)
|-
|12
|PPM
|ppm output mode<code><code>0</code></code> - rms<code><code>1</code></code> - peak
|-
|13
|PPM
|ppm average time (tavr) in seconds (<code>0.1 <= tavr < 1</code>)
|-
|14
|PPM
|reset peak values (pulse)<code><code>0</code></code> - continue<code><code>1</code> - reset</code>
|}
|}

Latest revision as of 11:07, 28 April 2011

MUXIN - input signal pre-processor

Usage:

MUXIN SEL L A B PAR SR OUT A B X Y LX LY PLX PLY

Inputs:
SEL
The X/Y signal selection (number)
L
The frame length (number)
A,B
The input signals A, B (vector)
PAR
The processing parameters (vector). See the pre/post processing table notes for details.
SR
The sampling rate in Hz (number)
Outputs:
A,B
The pre-processed input signals A, B
X,Y
The signals selected by SEL
LX
The level X (number) in dB
LY
The level Y (number) in dB
PLX
The peak level X (number) in dB
PLY
The peak level Y (number) in dB
Function:

Pre-processor, multiplexer and level-meter for input signals.

Notes:

Pre-processing is applied to A and B before selection.

The peak level outputs PLX and PLY are the overall maximum values of PX and PY.

To reset the peak values, use the reset value of the parameter table PAR.

X/Y Selection:

SEL X Y Description
0 A B mono A
1 B B mono B
2 A+B A+B mono sum
3 A-B A-B mono difference
4 A B stereo
5 B A stereo reverse
6 A+B A-B stereo sum/difference


Pre/Post-processing and ppm-evaluation used by MUXIn and MUXOUT

The parameters 0-11 are used to control the processing modules which compute Ay(Ax) and By(Bx), and the parameters 12-14 control the ppm computation.

Parameter Table:

Index Module Description
0 AMP linear gain factor for signal A
1 AMP linear gain factor signal B
2 FLT filter mode:0 - off (no filter)1 - filter channel A2 - filter channel B3 - filter both channels
3 FLT relative filter cutoff frequency (kcut):0 - no filter0 > kcut >= -1 - lowpass (fcut - (1+kcut) * srate/2)0 < kcut <= 1 - highpass (fcut = (1-kcut) * srate/2)
4 AGC compression / expansion mode0 - off (no agc)1 - apply agc to channel A2 - apply agc to channel B3 - apply agc to both channels4 - apply agc to both channels with synchronous gain control
5 AGC compression start amplitude (ac) in dB (ac >= ax)
6 AGC compression gain slope (kc) (0 <= kc <= 1)
7 AGC expansion start amplitude (ax) in dB (ax <= ac)
8 AGC expansion gain slope (kx) (0 <= kx <= 1)
9 AGC gain control averaging time (ta) in seconds (0.01 <= ta <= 0.2)
10 AGC gain control slope duration (tg) in seconds (0.01 <= tg <= 0.2)
11 AGC gain step (dg) in dB (0.5 <= dg <= 3)
12 PPM ppm output mode0 - rms1 - peak
13 PPM ppm average time (tavr) in seconds (0.1 <= tavr < 1)
14 PPM reset peak values (pulse)0 - continue1 - reset

Navigation menu

Personal tools