~ubuntu-branches/ubuntu/trusty/csound-manual/trusty-proposed

« back to all changes in this revision

Viewing changes to opcodes/temposcal.xml

  • Committer: Bazaar Package Importer
  • Author(s): Felipe Sateler
  • Date: 2011-08-01 22:21:58 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110801222158-90kslkp5ujci2f5d
Tags: 1:5.13~dfsg-1
* New upstream release
 - Add Menno Knevel to the copyright file
 - Refresh patch 2000-stripped-opcodes.diff
 - Update copyright hints file
* Update Vcs-* headers
* Bump Standards-Version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<refentry id="temposcal">
 
2
<indexterm id="IndexTemposcal"><primary>temposcal</primary></indexterm>
 
3
  <refentryinfo><title>Spectral processing: temposcal</title></refentryinfo>
 
4
  <refmeta>
 
5
    <refentrytitle>temposcal</refentrytitle>
 
6
  </refmeta>
 
7
 
 
8
 
 
9
 
 
10
  <refnamediv>
 
11
    <refname>temposcal</refname>
 
12
    <refpurpose>
 
13
Phase-locked vocoder processing with onset detection/processing, 'tempo-scaling'.
 
14
          </refpurpose>
 
15
  </refnamediv>
 
16
  
 
17
  <refsect1>
 
18
    <title>Description</title>
 
19
    <para>
 
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.
 
23
  </para>
 
24
  <para>
 
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. 
 
26
  </para>
 
27
  <para>
 
28
<emphasis>temposcal</emphasis> will also scale pitch, independently of frequency, using a transposition factor (k-rate).
 
29
  </para>
 
30
  </refsect1>
 
31
 
 
32
  <refsect1>
 
33
    <title>Syntax</title>
 
34
    <synopsis>asig <command>temposcal</command> ktimescal,kamp,kpitch,ktab,klock[,ifftsize, idecim, ithresh]
 
35
      </synopsis>
 
36
  </refsect1>
 
37
 
 
38
  <refsect1>
 
39
    <title>Initialization</title>
 
40
      <para>
 
41
      <emphasis>ifftsize</emphasis> -- FFT size (power-of-two), defaults to 2048.
 
42
    </para>
 
43
              <para>
 
44
      <emphasis>idecim</emphasis> -- decimation, defaults to 4 (meaning hopsize = fftsize/4)
 
45
    </para>
 
46
                      <para>
 
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)
 
48
    </para>
 
49
        
 
50
  </refsect1>
 
51
  
 
52
  <refsect1>
 
53
    <title>Performance</title>
 
54
  <para>
 
55
      <emphasis>ktimescal</emphasis> -- timescaling ratio, &lt; 1 stretch, > 1 contract.
 
56
    </para>
 
57
    <para>
 
58
      <emphasis>kamp</emphasis> -- amplitude scaling
 
59
    </para>
 
60
    <para>
 
61
      <emphasis>kpitch</emphasis> -- grain pitch scaling (1=normal pitch, &lt; 1 lower, > 1 higher; negative, backwards)
 
62
    </para>
 
63
 
 
64
    <para>
 
65
      <emphasis>klock</emphasis> -- 0 or 1, to switch phase-locking on/off
 
66
    </para>
 
67
    <para>
 
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.
 
71
    </para>
 
72
 
 
73
  </refsect1>
 
74
  <refsect1>
 
75
    <title>Examples</title>
 
76
    <para>
 
77
      <example>
 
78
        <title>Example</title>
 
79
        <programlisting>
 
80
                
 
81
idur = p3
 
82
ilock = p4
 
83
itab = 1
 
84
ipitch = 1
 
85
iamp = 0.8
 
86
ktime linseg 0.3, p3/2, 0.8, p3/2, 0.3
 
87
 
 
88
a1 temposcal ktime,iamp,ipitch,itab,ilock
 
89
 
 
90
   out a1
 
91
    
 
92
 
 
93
   </programlisting>
 
94
      </example>
 
95
 
 
96
    </para>
 
97
    
 
98
 
 
99
  </refsect1>
 
100
 
 
101
 
 
102
 
 
103
  <refsect1>
 
104
    <title>Credits</title>
 
105
    <para>
 
106
      <simplelist>
 
107
        <member>Author: &namevictor;</member>
 
108
        <member>February 2010</member>
 
109
      </simplelist>
 
110
    </para>
 
111
 
 
112
    <para>New plugin in version 5.13</para>
 
113
    <para>February 2005.</para>
 
114
  </refsect1>
 
115
</refentry>