Debian Codegraph @

opcodes/specscal.xml

raw symbols SCIP
1
2 <refentry id="specscal">
3 <indexterm id="IndexSpecscal"><primary>specscal</primary></indexterm>
4 <refentryinfo><title>Spectral Processing:Non-Standard</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>specscal</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>specscal</refname>
11 <refpurpose>
12 Scales an input spectral datablock with spectral envelopes.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Scales an input spectral datablock with spectral envelopes.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>wsig <command>specscal</command> wsigin, ifscale, ifthresh</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>ifscale</emphasis> -- scale function table. A function table containing values by which a value's magnitude is rescaled.
32 </para>
33
34 <para>
35 <emphasis>ifthresh</emphasis> -- threshold function table. If <emphasis>ifthresh</emphasis> is non-zero, each magnitude is reduced by its corresponding table-value (to not less than zero)
36 </para>
37 </refsect1>
38
39 <refsect1>
40 <title>Performance</title>
41 <para>
42 <emphasis>wsig</emphasis> -- the output spectrum
43 </para>
44
45 <para>
46 <emphasis>wsigin</emphasis> -- the input spectra
47 </para>
48
49 <para>
50 Scales an input spectral datablock with spectral envelopes. Function tables <emphasis>ifthresh</emphasis> and <emphasis>ifscale</emphasis> are initially sampled across the (logarithmic) frequency space of the input spectrum; then each time a new input spectrum is sensed the sampled values are used to scale each of its magnitude channels as follows: if <emphasis>ifthresh</emphasis> is non-zero, each magnitude is reduced by its corresponding table-value (to not less than zero); then each magnitude is rescaled by the corresponding <emphasis>ifscale</emphasis> value, and the resulting spectrum written to <emphasis>wsig</emphasis>.
51 </para>
52 </refsect1>
53
54 <refsect1>
55 <title>Examples</title>
56 <para>
57 <informalexample>
58 <programlisting>
59 wsig2 <emphasis role="opc">specdiff</emphasis> wsig1 <emphasis role="comment">; sense onsets</emphasis>
60 wsig3 <emphasis role="opc">specfilt</emphasis> wsig2, 2 <emphasis role="comment">; absorb slowly</emphasis>
61 <emphasis role="opc">specdisp</emphasis> wsig2, 0.1 <emphasis role="comment">; &amp; display both spectra</emphasis>
62 <emphasis role="opc">specdisp</emphasis> wsig3, 0.1</programlisting>
63 </informalexample>
64 </para>
65 </refsect1>
66
67 <refsect1>
68 <title>See Also</title>
69 <para>
70 <link linkend="specaddm"><citetitle>specaddm</citetitle></link>,
71 <link linkend="specdiff"><citetitle>specdiff</citetitle></link>,
72 <link linkend="specfilt"><citetitle>specfilt</citetitle></link>,
73 <link linkend="spechist"><citetitle>spechist</citetitle></link>
74 </para>
75 </refsect1>
76 </refentry>