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

« back to all changes in this revision

Viewing changes to opcodes/pvswarp.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
 
 
2
<refentry id="pvswarp">
 
3
<indexterm id="Indexpvswarp"><primary>pvswarp</primary></indexterm>
 
4
  <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo>
 
5
  <refmeta>
 
6
    <refentrytitle>pvswarp</refentrytitle>
 
7
  </refmeta>
 
8
 
 
9
  <refnamediv>
 
10
    <refname>pvswarp</refname>
 
11
    <refpurpose>
 
12
      Warp the spectral envelope of a PVS signal
 
13
    </refpurpose>
 
14
  </refnamediv>
 
15
 
 
16
  <refsect1>
 
17
    <title>Description</title>
 
18
    <para>
 
19
      Warp the spectral envelope of a PVS signal by means of shifting and scaling.
 
20
    </para>
 
21
  </refsect1>
 
22
 
 
23
  <refsect1>
 
24
    <title>Syntax</title>
 
25
    <synopsis>fsig <command>pvswarp</command> fsigin, kscal, kshift[, klowest, kmeth, kgain, kcoefs]</synopsis>
 
26
  </refsect1>
 
27
 
 
28
  <refsect1>
 
29
    <title>Performance</title>
 
30
    <para>
 
31
      <emphasis>fsig</emphasis> -- output pv stream
 
32
    </para>
 
33
 
 
34
    <para>
 
35
      <emphasis>fsigin</emphasis> -- input pv stream
 
36
    </para>
 
37
 
 
38
    <para>
 
39
      <emphasis>kscal</emphasis> -- spectral envelope scaling ratio. Values > 1 stretch the envelope and &lt; 1 compress it.
 
40
    </para>
 
41
 
 
42
    <para>
 
43
      <emphasis>kshift</emphasis> -- spectral envelope shift, values > 0 shift the envelope linearly upwards and values &lt; 1 shift it downwards.
 
44
    </para>
 
45
 
 
46
   <para>
 
47
      <emphasis>klowest</emphasis> -- lowest frequency shifted (affects only kshift, defaults to 0).
 
48
    </para>
 
49
 
 
50
    <para>
 
51
      <emphasis>kmethod</emphasis> -- spectral envelope extraction method
 
52
                                1:  liftered cepstrum method; 2: true envelope method
 
53
                                (defaults to 1). 
 
54
    </para>
 
55
 
 
56
    <para>
 
57
      <emphasis>kgain</emphasis> -- amplitude scaling (defaults to 1).
 
58
    </para>
 
59
 
 
60
<para>
 
61
      <emphasis>kcoefs</emphasis> -- number of cepstrum coefs used in formant preservation (defaults to 80).
 
62
    </para>
 
63
 
 
64
    <warning>
 
65
      <para>
 
66
        It is unsafe to use the same f-variable for both input and output of pvs opcodes. Using the same one might lead to undefined behavior on some opcodes. Use a different one on the left and right sides of the opcode.
 
67
      </para>
 
68
   </warning>
 
69
 
 
70
  </refsect1>
 
71
  <refsect1>
 
72
    <title>Examples</title>
 
73
    <para>
 
74
      <example>
 
75
        <title>Example</title>
 
76
        <programlisting>
 
77
asig  in                                 ; get the signal in
 
78
 
 
79
fsig  pvsanal   asig, 1024, 256, 1024, 1 ; analyse it
 
80
ftps  pvswarp   fsig, 1.5, 0             ; warp it
 
81
atps  pvsynth  ftps                      ; synthesise it
 
82
 
 
83
       out atps                     
 
84
</programlisting>
 
85
      </example>
 
86
    </para>
 
87
    <para>
 
88
    The example above shows a spectral envelope warper, scaling the freq envelope by 1.5. Used with vocal sounds, it will shift the formants and result in a changed vowel timbre, similar to the effect of a singer inhaling helium (the 'donald duck' effect).
 
89
    </para>
 
90
    <para>
 
91
      Here is an example of the use of the <emphasis>pvswarp</emphasis> opcode. It uses the file <ulink url="examples/pvswarp.csd"><citetitle>pvswarp.csd</citetitle></ulink>.
 
92
<!--      <example>
 
93
        <title>Example of the <emphasis>pvswarp</emphasis> opcode.</title>
 
94
        <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>
 
95
          <xi:include href="examples-xml/pvswarp.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
 
96
      </example>
 
97
-->
 
98
    </para>
 
99
  </refsect1>
 
100
 
 
101
  <refsect1>
 
102
    <title>See Also</title>
 
103
    <para>
 
104
      <link linkend="pvsanal"><citetitle>pvsanal</citetitle></link>,
 
105
      <link linkend="pvsynth"><citetitle>pvsynth</citetitle></link>,
 
106
      <link linkend="pvsadsyn"><citetitle>pvsadsyn</citetitle></link>
 
107
    </para>
 
108
  </refsect1>
 
109
 
 
110
  <refsect1>
 
111
    <title>Credits</title>
 
112
    <para>
 
113
      <simplelist>
 
114
        <member>Author: &namevictor;</member>
 
115
        <member>November 2004 </member>
 
116
      </simplelist>
 
117
    </para>
 
118
 
 
119
    <para>New plugin in version 5</para>
 
120
    <para>November 2004.</para>
 
121
  </refsect1>
 
122
</refentry>