Programmer Guide/SPU Reference/AWEIGHT: Difference between revisions
From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import) |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
==== | {{SPAtomTemplate}} | ||
====AWEIGHTS - frequency weighting==== | |||
Apply a frequency weighting function to a spectrum. | Apply a frequency weighting function to a spectrum. | ||
Line 6: | Line 7: | ||
=====Usage:===== | =====Usage:===== | ||
<code>SPU AWEIGHTS <var>F</var> <var>A</var> <var> | <code>SPU AWEIGHTS <var>F</var> <var>A</var> <var>TYP</var> <var>W</var> <var>MIMI</var> OUT <var>Y</var> <var>YMIN</var> <var>YMAX</var></code> | ||
=====Inputs:===== | =====Inputs:===== | ||
; | {| | ||
! style="text-align:leftr;"|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: | |||
:<code>power</code>|<code>linear</code>|l<code>ogarithmic</code> | :<code>power</code>|<code>linear</code>|l<code>ogarithmic</code> | ||
|- | |||
|W | |||
|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> | ||
|- | |||
|MIMI | |||
|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:===== | ||
; | {| | ||
! style="text-align:leftr;"|Name | |||
! Description | |||
|- | |||
|Y | |||
|The output spectrum. | |||
|- | |||
|YMIN, YMAX | |||
|The minimum and maximum y values, if detection was turned on (see <var>MIMI</var>). | |||
|- | |||
|} |
Latest revision as of 08: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:
|
W | The weighting function. The following values are supported:
|
MIMI | The minimum/maximum detection mode:
|
Outputs:
Name | Description |
---|---|
Y | The output spectrum. |
YMIN, YMAX | The minimum and maximum y values, if detection was turned on (see MIMI). |