Debian Codegraph @

opcodes/pvsosc.xml

raw symbols SCIP
1
2 <refentry id="pvsosc">
3 <indexterm id="Indexpvsosc"><primary>pvsosc</primary></indexterm>
4
5 <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo>
6 <refmeta>
7 <refentrytitle>pvsosc</refentrytitle>
8 </refmeta>
9
10 <refnamediv>
11 <refname>pvsosc</refname>
12 <refpurpose>
13 PVS-based oscillator simulator.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 Generates periodic signal spectra in AMP-FREQ format, with the option of four wave types:
21 <orderedlist>
22 <listitem><simpara>sawtooth-like (harmonic weight 1/n, where n is partial number)</simpara></listitem>
23 <listitem><simpara>square-like (similar to 1., but only odd partials)</simpara></listitem>
24 <listitem><simpara>pulse (all harmonics with same weight)</simpara></listitem>
25 <listitem><simpara>cosine</simpara></listitem>
26 </orderedlist>
27 Complex waveforms (ie. all types except cosine) contain all harmonics up to the Nyquist. This makes pvsosc an option for generation of band-limited periodic waves. In addition, types can be changed using a k-rate variable.
28 </para>
29 </refsect1>
30
31 <refsect1>
32 <title>Syntax</title>
33 <synopsis>fsig <command>pvsosc</command> kamp, kfreq, ktype, isize [,ioverlap] [, iwinsize] [, iwintype] [, iformat]</synopsis>
34 </refsect1>
35
36 <refsect1>
37 <title>Initialisation</title>
38 <para>
39 <emphasis>fsig</emphasis> -- output pv stream set to zero.
40 </para>
41
42 <para>
43 <emphasis>isize</emphasis> -- size of analysis frame and window.
44 </para>
45 <para>
46 <emphasis>ioverlap</emphasis> -- (Optional) size of overlap, defaults to isize/4.
47 </para>
48 <para>
49 <emphasis>iwinsize</emphasis> -- (Optional) window size, defaults to isize.
50 </para>
51 <para>
52 <emphasis>iwintype</emphasis> -- (Optional) window type, defaults to Hanning. The choices are currently:
53 <itemizedlist>
54 <listitem><para>0 = Hamming window</para></listitem>
55 <listitem><para>1 = von Hann window</para></listitem>
56 </itemizedlist>
57 </para>
58 <para>
59 <emphasis>iformat</emphasis> -- (Optional) data format, defaults to 0 which produces AMP:FREQ data. That is currently the only option.
60 </para>
61 </refsect1>
62
63 <refsect1>
64 <title>Performance</title>
65 <para>
66 <emphasis>kamp</emphasis> -- signal amplitude. Note that the actual signal amplitude can,
67 depending on wave type and frequency, vary slightly above or below this value. Generally
68 the amplitude will tend to exceed kamp on higher frequencies (> 1000 Hz) and be reduced on
69 lower ones. Also due to the overlap-add process, when resynthesing with pvsynth, frequency
70 glides will cause the output amplitude to fluctuate above and below kamp.
71 </para>
72
73 <para>
74 <emphasis>kfreq</emphasis> -- fundamental frequency in Hz.
75 </para>
76 <para>
77 <emphasis>ktype</emphasis> -- wave type: 1. sawtooh-like, 2.square-like, 3.pulse and any other
78 value for cosine.
79 </para>
80 </refsect1>
81
82 <refsect1>
83 <title>Examples</title>
84 <para>
85 Here is an example of the pvsosc opcode. It uses the file <ulink url="examples/pvsosc.csd"><citetitle>pvsosc.csd</citetitle></ulink>.
86 <example>
87 <title>Example of the pvsosc opcode</title>
88 <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>
89 <xi:include href="examples-xml/pvsosc.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
90 </example>
91 </para>
92 </refsect1>
93
94 <refsect1>
95 <title>See also</title>
96 <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para>
97 </refsect1>
98
99 <refsect1>
100 <title>Credits</title>
101 <para>
102 <simplelist>
103 <member>Author: &namevictor;</member>
104 <member>August 2006 </member>
105 </simplelist>
106 </para>
107
108 </refsect1>
109 </refentry>