<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?action=history&amp;feed=atom&amp;title=Programmer_Guide%2FSPU_Reference%2FADPAR1</id>
	<title>Programmer Guide/SPU Reference/ADPAR1 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?action=history&amp;feed=atom&amp;title=Programmer_Guide%2FSPU_Reference%2FADPAR1"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/SPU_Reference/ADPAR1&amp;action=history"/>
	<updated>2026-05-06T23:35:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/SPU_Reference/ADPAR1&amp;diff=1918&amp;oldid=prev</id>
		<title>Admin: 1 revision:&amp;#32;Initial import</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/SPU_Reference/ADPAR1&amp;diff=1918&amp;oldid=prev"/>
		<updated>2010-11-18T16:31:56Z</updated>

		<summary type="html">&lt;p&gt;1 revision: Initial import&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:31, 18 November 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/SPU_Reference/ADPAR1&amp;diff=1917&amp;oldid=prev</id>
		<title>193.171.195.8: initial import</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/SPU_Reference/ADPAR1&amp;diff=1917&amp;oldid=prev"/>
		<updated>2010-05-17T13:05:27Z</updated>

		<summary type="html">&lt;p&gt;initial import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:{{SUBPAGENAME}}}}&lt;br /&gt;
====ADPAR1====&lt;br /&gt;
&lt;br /&gt;
The spectral weighting (if AW=1) and the frequency range truncation (FMIN .. FMAX) is applied to all input spectra. The further processing of the spectra depends on the selected &amp;lt;var&amp;gt;TYPE&amp;lt;/var&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;var&amp;gt;TYPE&amp;lt;/var&amp;gt;=&amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The RMS energy (in dB) of the spectrum (band) is computed and stored in the output vector &amp;lt;var&amp;gt;Y&amp;lt;/var&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;var&amp;gt;TYPE&amp;lt;/var&amp;gt;=&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;|&amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The pre-processed spectra are converted to dB and copied to the output array &amp;lt;var&amp;gt;SPG&amp;lt;/var&amp;gt; (1 row per spectrum).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;var&amp;gt;TYPE&amp;lt;/var&amp;gt;=&amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After collecting all input spectra, the following descriptors are computed.&lt;br /&gt;
&lt;br /&gt;
Y[i,0] = rms - RMS energy of the spectrum (dB)&lt;br /&gt;
&lt;br /&gt;
Y[i,1] = am - mean amplitude of the spectrum (dB)&lt;br /&gt;
&lt;br /&gt;
Y[i,2] = ad - standard deviation of the spectrum (dB)&lt;br /&gt;
&lt;br /&gt;
Y[i,3] = sl - spectral slope (dB / kHz)&lt;br /&gt;
&lt;br /&gt;
Y[i,4] = acno - mean amplitude of the normalized spectrum (dB)&lt;br /&gt;
&lt;br /&gt;
Y[i,5] = fcno - spectral centroid frequency (Hz)&lt;br /&gt;
&lt;br /&gt;
Y[i,6] = spno - spectral spread&lt;br /&gt;
&lt;br /&gt;
Y[i,7] = fx - spectral flux (1st order, correlation of spectrum i-1 and i)&lt;br /&gt;
&lt;br /&gt;
Y[i,8] = skno - spectral skewness&lt;br /&gt;
&lt;br /&gt;
Note: all descriptors with the subscript no are computed from the normalized spectrum. The spectra are normalized as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;offset = max(&amp;lt;/code&amp;gt;&amp;lt;var&amp;gt;SPG&amp;lt;/var&amp;gt;&amp;lt;code&amp;gt;[*,*]) -&amp;lt;/code&amp;gt; &amp;lt;var&amp;gt;ARANGE&amp;lt;/var&amp;gt;if &amp;lt;var&amp;gt;A&amp;lt;/var&amp;gt;&amp;lt;code&amp;gt;[i,j]&amp;gt;offset&amp;lt;/code&amp;gt;, then &amp;lt;var&amp;gt;A&amp;lt;/var&amp;gt;no&amp;lt;code&amp;gt;[i,j]=&amp;lt;/code&amp;gt;&amp;lt;var&amp;gt;A&amp;lt;/var&amp;gt;&amp;lt;code&amp;gt;[i,j]-offset&amp;lt;/code&amp;gt;otherwise, &amp;lt;var&amp;gt;A&amp;lt;/var&amp;gt;no&amp;lt;code&amp;gt;[i,j] = 0&amp;lt;/code&amp;gt;with: &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt; = frameindex, &amp;lt;code&amp;gt;j&amp;lt;/code&amp;gt; = frequency bin indexThis SPAtom was developed for the NOIDESc project in 2006.&lt;br /&gt;
&lt;br /&gt;
=====Usage:=====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ADPAR1 &amp;lt;var&amp;gt;TYPE&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;N&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;A&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;AW&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;AREF&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;ARANGE&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;DF&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;FMIN&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;FMAX&amp;lt;/var&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Parameters:=====&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;TYPE&amp;lt;/var&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The following types are supported:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; = RMS track&lt;br /&gt;
&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; = spectrogram&lt;br /&gt;
&amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt; = descriptors&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;N&amp;lt;/var&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The number of frames (&amp;gt;&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;A&amp;lt;/var&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The linear amplitude spectrum.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;AW&amp;lt;/var&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Apply amplitude weighting:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;NONE&amp;lt;/code&amp;gt;|&amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; - no spectrum weighting&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt;|&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; - spectrum weighting in dBA.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;AREF&amp;lt;/var&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The reference amplitude (linear).&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;ARANGE&amp;lt;/var&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The amplitude normalization range for descriptors (&amp;lt;var&amp;gt;TYPE&amp;lt;/var&amp;gt;=&amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;) in dB.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;DF&amp;lt;/var&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The FFT frequency resolution in Hz.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;FMIN, FMAX&amp;lt;/var&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The analysis frequency range.&lt;br /&gt;
&lt;br /&gt;
=====Outputs:=====&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;Y&amp;lt;/var&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:If &amp;lt;var&amp;gt;TYPE&amp;lt;/var&amp;gt;==&amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;, the rms track (rms[0..N-1]).&lt;br /&gt;
&lt;br /&gt;
:If &amp;lt;var&amp;gt;TYPE&amp;lt;/var&amp;gt;==&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;, the spectrogram array (one spectrum per row).&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;SPG&amp;lt;/var&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The logarithmic amplitude spectrogram.&lt;br /&gt;
&lt;br /&gt;
:If &amp;lt;var&amp;gt;TYPE&amp;lt;/var&amp;gt;=&amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; - this is not initialized.&lt;br /&gt;
&lt;br /&gt;
:If &amp;lt;var&amp;gt;TYPE&amp;lt;/var&amp;gt;=&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;|&amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt; - &amp;lt;var&amp;gt;N&amp;lt;/var&amp;gt; x &amp;lt;code&amp;gt;nf&amp;lt;/code&amp;gt; (= the number of frequency bins in the selected range).&lt;/div&gt;</summary>
		<author><name>193.171.195.8</name></author>
	</entry>
</feed>