Debian Codegraph @

opcodes/temposcal.xml

raw symbols SCIP
1 <refentry id="temposcal">
2 <indexterm id="IndexTemposcal"><primary>temposcal</primary></indexterm>
3 <refentryinfo><title>Spectral Processing:Other</title></refentryinfo>
4 <refmeta>
5 <refentrytitle>temposcal</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>temposcal</refname>
10 <refpurpose>
11 Phase-locked vocoder processing with onset detection/processing, 'tempo-scaling'.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>
18 <emphasis>temposcal</emphasis> implements phase-locked vocoder processing using function tables
19 containing sampled-sound sources, with <link linkend="GEN01"><citetitle>GEN01</citetitle></link>, and
20 <emphasis>temposcal</emphasis> will accept deferred allocation tables.
21 </para>
22 <para>
23 This opcode allows for time and frequency-independent scaling. Time is advanced internally, but controlled by a tempo scaling parameter; when an onset is detected, timescaling is momentarily stopped to avoid smearing of attacks. The quality of the effect is generally improved with phase locking switched on.
24 </para>
25 <para>
26 <emphasis>temposcal</emphasis> will also scale pitch, independently of frequency, using a transposition factor (k-rate).
27 </para>
28 </refsect1>
29
30 <refsect1>
31 <title>Syntax</title>
32 <synopsis>asig <command>temposcal</command> ktimescal, kamp, kpitch, ktab, klock [,ifftsize, idecim, ithresh]
33 </synopsis>
34 </refsect1>
35
36 <refsect1>
37 <title>Initialization</title>
38 <para>
39 <emphasis>ifftsize</emphasis> -- FFT size (power-of-two), defaults to 2048.
40 </para>
41 <para>
42 <emphasis>idecim</emphasis> -- decimation, defaults to 4 (meaning hopsize = fftsize/4)
43 </para>
44 <para>
45 <emphasis>idbthresh</emphasis> -- threshold based on dB power spectrum ratio between two successive windows. A detected ratio above it will cancel timescaling momentarily, to avoid smearing (defaults to 1)
46 </para>
47 </refsect1>
48
49 <refsect1>
50 <title>Performance</title>
51 <para>
52 <emphasis>ktimescal</emphasis> -- timescaling ratio, &lt; 1 stretch, > 1 contract.
53 </para>
54 <para>
55 <emphasis>kamp</emphasis> -- amplitude scaling
56 </para>
57 <para>
58 <emphasis>kpitch</emphasis> -- grain pitch scaling (1=normal pitch, &lt; 1 lower, > 1 higher; negative, backwards)
59 </para>
60 <para>
61 <emphasis>klock</emphasis> -- 0 or 1, to switch phase-locking on/off
62 </para>
63 <para>
64 <emphasis>ktab</emphasis> -- source signal function table. Deferred-allocation tables (see
65 <link linkend="GEN01"><citetitle>GEN01</citetitle></link>) are accepted, but the opcode
66 expects a mono source. Tables can be switched at k-rate.
67 </para>
68 </refsect1>
69
70 <refsect1>
71 <title>Examples</title>
72 <para>
73 Here is an example of the temposcal opcode. It uses the file <ulink url="examples/temposcal.csd"><citetitle>temposcal.csd</citetitle></ulink>.
74 <example>
75 <title>Example of the temposcal opcode.</title>
76 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
77 <xi:include href="examples-xml/temposcal.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
78 </example>
79 </para>
80 </refsect1>
81
82 <refsect1>
83 <title>See Also</title>
84 <para>
85 <link linkend="SiggenStft"><citetitle>Short-time Fourier Transform (STFT) Resynthesis</citetitle></link>
86 </para>
87 </refsect1>
88
89 <refsect1>
90 <title>Credits</title>
91 <para>
92 <simplelist>
93 <member>Author: &namevictor;</member>
94 <member>February 2010</member>
95 </simplelist>
96 </para>
97
98 <para>New plugin in version 5.13</para>
99 <para>February 2005.</para>
100 </refsect1>
101 </refentry>
102