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:===== | ||
; | {| | ||
! 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). |