1
<refentry id="temposcal">
2
<indexterm id="IndexTemposcal"><primary>temposcal</primary></indexterm>
3
<refentryinfo><title>Spectral processing: temposcal</title></refentryinfo>
5
<refentrytitle>temposcal</refentrytitle>
11
<refname>temposcal</refname>
13
Phase-locked vocoder processing with onset detection/processing, 'tempo-scaling'.
18
<title>Description</title>
20
<emphasis>temposcal</emphasis> implements phase-locked vocoder processing using function tables
21
containing sampled-sound sources, with <link linkend="GEN01"><citetitle>GEN01</citetitle></link>, and
22
<emphasis>temposcal</emphasis> will accept deferred allocation tables.
25
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.
28
<emphasis>temposcal</emphasis> will also scale pitch, independently of frequency, using a transposition factor (k-rate).
34
<synopsis>asig <command>temposcal</command> ktimescal,kamp,kpitch,ktab,klock[,ifftsize, idecim, ithresh]
39
<title>Initialization</title>
41
<emphasis>ifftsize</emphasis> -- FFT size (power-of-two), defaults to 2048.
44
<emphasis>idecim</emphasis> -- decimation, defaults to 4 (meaning hopsize = fftsize/4)
47
<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)
53
<title>Performance</title>
55
<emphasis>ktimescal</emphasis> -- timescaling ratio, < 1 stretch, > 1 contract.
58
<emphasis>kamp</emphasis> -- amplitude scaling
61
<emphasis>kpitch</emphasis> -- grain pitch scaling (1=normal pitch, < 1 lower, > 1 higher; negative, backwards)
65
<emphasis>klock</emphasis> -- 0 or 1, to switch phase-locking on/off
68
<emphasis>ktab</emphasis> -- source signal function table. Deferred-allocation tables (see
69
<link linkend="GEN01"><citetitle>GEN01</citetitle></link>) are accepted, but the opcode
70
expects a mono source. Tables can be switched at k-rate.
75
<title>Examples</title>
78
<title>Example</title>
86
ktime linseg 0.3, p3/2, 0.8, p3/2, 0.3
88
a1 temposcal ktime,iamp,ipitch,itab,ilock
104
<title>Credits</title>
107
<member>Author: &namevictor;</member>
108
<member>February 2010</member>
112
<para>New plugin in version 5.13</para>
113
<para>February 2005.</para>