forked from csound/manual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadsynt.xml
96 lines (75 loc) · 3.97 KB
/
adsynt.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<refentry id="adsynt">
<indexterm id="IndexAdsynt"><primary>adsynt</primary></indexterm>
<refentryinfo><title>Signal Generators:Additive Synthesis/Resynthesis</title></refentryinfo>
<refmeta>
<refentrytitle>adsynt</refentrytitle>
</refmeta>
<refnamediv>
<refname>adsynt</refname>
<refpurpose>
Performs additive synthesis with an arbitrary number of partials, not necessarily harmonic.
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<para>
Performs additive synthesis with an arbitrary number of partials, not necessarily harmonic.
</para>
</refsect1>
<refsect1>
<title>Syntax</title>
<synopsis>ares <command>adsynt</command> kamp, kcps, iwfn, ifreqfn, iampfn, icnt [, iphs]</synopsis>
</refsect1>
<refsect1>
<title>Initialization</title>
<para>
<emphasis>iwfn</emphasis> -- table containing a waveform, usually a sine. Table values are not interpolated for performance reasons, so larger tables provide better quality.
</para>
<para>
<emphasis>ifreqfn</emphasis> -- table containing frequency values for each partial. <emphasis>ifreqfn</emphasis> may contain beginning frequency values for each partial, but is usually used for generating parameters at runtime with <emphasis>tablew</emphasis>. Frequencies must be relative to <emphasis>kcps</emphasis>. Size must be at least <emphasis>icnt</emphasis>.
</para>
<para>
<emphasis>iampfn</emphasis> -- table containing amplitude values for each partial. <emphasis>iampfn</emphasis> may contain beginning amplitude values for each partial, but is usually used for generating parameters at runtime with <emphasis>tablew</emphasis>. Amplitudes must be relative to <emphasis>kamp</emphasis>. Size must be at least <emphasis>icnt</emphasis>.
</para>
<para>
<emphasis>icnt</emphasis> -- number of partials to be generated
</para>
<para>
<emphasis>iphs</emphasis> -- initial phase of each oscillator, if <emphasis>iphs</emphasis> = -1, initialization is skipped. If <emphasis>iphs</emphasis> > 1, all phases will be initialized with a random value.
</para>
</refsect1>
<refsect1>
<title>Performance</title>
<para>
<emphasis>kamp</emphasis> -- amplitude of note
</para>
<para>
<emphasis>kcps</emphasis> -- base frequency of note. Partial frequencies will be relative to <emphasis>kcps</emphasis>.
</para>
<para>
Frequency and amplitude of each partial is given in the two tables provided. The purpose of this opcode is to have an instrument generate synthesis parameters at k-rate and write them to global parameter tables with the <emphasis>tablew</emphasis> opcode.
</para>
</refsect1>
<refsect1>
<title>Examples</title>
<para>
Here is an example of the adsynt opcode. It uses the file <ulink url="examples/adsynt.csd"><citetitle>adsynt.csd</citetitle></ulink>. These two instruments perform additive synthesis. The output of each sounds like a Tibetan bowl. The first one is static, as parameters are only generated at init-time. In the second one, parameters are continuously changed.
<example>
<title>Example of the adsynt opcode.</title>
<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>
<xi:include href="examples-xml/adsynt.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
</example>
</para>
</refsect1>
<refsect1>
<title>Credits</title>
<para>
<simplelist>
<member>Author: Peter Neubäcker</member>
<member>Munich, Germany</member>
<member>August, 1999</member>
</simplelist>
</para>
<para>New in Csound version 3.58</para>
</refsect1>
</refentry>