Programmer Guide/SPU Reference/AWEIGHT: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{SPAtomTemplate}}
====AWEIGHTS - frequency weighting====
====AWEIGHTS - frequency weighting====


Line 10: Line 11:
=====Inputs:=====
=====Inputs:=====


;<var>F</var>
{|
 
! style="text-align:leftr;"|Name
:The frequency vector or sampling rate.
! Description
 
|-
;<var>A</var>
|F
 
|The frequency vector or sampling rate.
:The input spectrum.
|-
 
|A
;<var>TYP</var>
|The input spectrum.
 
|-
:The type of input and output spectrum. The following values are supported:
|TYP
 
|The type of input and output spectrum. The following values are supported:
:<code>power</code>|<code>linear</code>|l<code>ogarithmic</code>
:<code>power</code>|<code>linear</code>|l<code>ogarithmic</code>
 
|-
;<var>W</var>
|W
 
|The weighting function. The following values are supported:
:The weighting function. The following values are supported:
 
:<code>none</code>|<code>A</code>|<code>C</code>|<code>HTH</code>|<code>Phon</code>
:<code>none</code>|<code>A</code>|<code>C</code>|<code>HTH</code>|<code>Phon</code>
 
|-
;<var>MIMI</var>
|MIMI
 
|The minimum/maximum detection mode:
:The minimum/maximum detection mode:
 
:<code>0</code> - disabled
:<code>0</code> - disabled
:<code>1</code> - frame by frame
:<code>1</code> - frame by frame
:<code>2</code> - cumulative
:<code>2</code> - cumulative
|}


=====Outputs:=====
=====Outputs:=====


;<var>Y</var>
{|
 
! style="text-align:leftr;"|Name
:The output spectrum.
! Description
 
|-
;<var>YMIN, YMAX</var>
|Y
 
|The output spectrum.
:The minimum and maximum y values, if detection was turned on (see <var>MIMI</var>).
|-
|YMIN, YMAX
|The minimum and maximum y values, if detection was turned on (see <var>MIMI</var>).
|-
|}

Latest revision as of 09:03, 13 October 2015

AWEIGHTS - frequency weighting

Apply a frequency weighting function to a spectrum.

Usage:

SPU AWEIGHTS F A TYP W MIMI OUT Y YMIN YMAX

Inputs:
Name Description
F The frequency vector or sampling rate.
A The input spectrum.
TYP The type of input and output spectrum. The following values are supported:
power|linear|logarithmic
W The weighting function. The following values are supported:
none|A|C|HTH|Phon
MIMI The minimum/maximum detection mode:
0 - disabled
1 - frame by frame
2 - cumulative
Outputs:
Name Description
Y The output spectrum.
YMIN, YMAX The minimum and maximum y values, if detection was turned on (see MIMI).

Navigation menu

Personal tools