Debian Codegraph @

opcodes/lorismorph.xml

raw symbols SCIP
1
2 <refentry id="lorismorph">
3 <indexterm id="IndexLorisMorph"><primary>lorismorph</primary></indexterm>
4 <refentryinfo><title>Spectral Processing:Loris</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>lorismorph</refentrytitle>
7 </refmeta>
8
9
10 <refnamediv>
11 <refname>lorismorph</refname>
12 <refpurpose>Morphs two stored sets of bandwidth-enhanced partials
13 and stores a new set of partials representing the morphed
14 sound. The morph is performed by linearly interpolating the
15 parameter envelopes (frequency, amplitude, and bandwidth, or
16 noisiness) of the bandwidth-enhanced partials according to
17 control-rate frequency, amplitude, and bandwidth morphing
18 functions. </refpurpose>
19 </refnamediv>
20
21 <refsect1>
22 <title>Syntax</title>
23 <synopsis><command>lorismorph</command> isrcidx, itgtidx, istoreidx, kfreqmorphenv, kampmorphenv, kbwmorphenv</synopsis>
24 </refsect1>
25
26 <refsect1>
27 <title>Description</title>
28 <para><emphasis>lorismorph</emphasis> morphs two stored sets of bandwidth-enhanced
29 partials and stores a new set of partials representing the morphed
30 sound. The morph is performed by linearly interpolating the
31 parameter envelopes (frequency, amplitude, and bandwidth, or
32 noisiness) of the bandwidth-enhanced partials according to
33 control-rate frequency, amplitude, and bandwidth morphing
34 functions.
35 </para>
36 </refsect1>
37
38 <refsect1>
39 <title>Initialization</title>
40
41 <para><emphasis>istoreidx, ireadidx, isrcidx, itgtidx</emphasis> are
42 labels that identify a stored set of bandwidth-enhanced
43 partials. <emphasis>lorisread</emphasis> imports partials from a SDIF file and stores them
44 with the integer label istoreidx. <emphasis>lorismorph</emphasis> morphs sets of partials
45 labeled <emphasis>isrcidx</emphasis> and <emphasis>itgtidx</emphasis>, and stores the resulting partials with
46 the integer label <emphasis>istoreidx</emphasis>. <emphasis>lorisplay</emphasis> renders the partials stored
47 with the label <emphasis>ireadidx</emphasis>. The labels are used only at initialization
48 time, and may be reused without any cost or benefit in efficiency, and
49 without introducing any interaction between instruments or
50 instances.</para>
51
52 </refsect1>
53
54 <refsect1>
55 <title>Performance</title>
56 <para><emphasis>lorismorph</emphasis> generates a set of bandwidth-enhanced partials by
57 morphing two stored sets of partials, the source and target partials,
58 which may have been imported using <emphasis>lorisread</emphasis>, or generated by another
59 unit generator, including another instance of <emphasis>lorismorph</emphasis>. The morph is
60 performed by interpolating the parameters of corresponding (labeled)
61 partials in the two source sounds. The sound morph is
62 described by three control-rate morphing envelopes. <emphasis>kfreqmorphenv</emphasis>
63 describes the interpolation of partial frequency values in the two
64 source sounds. When <emphasis>kfreqmorphenv</emphasis> is 0, partial frequencies are
65 obtained from the partials stored at <emphasis>isrcidx</emphasis>. When <emphasis>kfreqmorphenv</emphasis> is 1,
66 partial frequencies are obtained from the partials at <emphasis>itgtidx</emphasis>. When
67 <emphasis>kfreqmorphenv</emphasis> is between 0 and 1, the partial frequencies are
68 interpolated between corresponding source and target
69 partials. Interpolation of partial amplitudes and bandwidth
70 (noisiness) coefficients are similarly described by <emphasis>kampmorphenv</emphasis> and
71 <emphasis>kbwmorphenv</emphasis>.</para>
72 </refsect1>
73
74 <refsect1>
75 <title>Examples</title>
76 <para>
77 Here is an example of the lorismorph opcode. It uses the file <ulink url="examples/lorismorph.csd"><citetitle>lorismorph.csd</citetitle></ulink>.
78 <example>
79 <title>Example of the lorismorph opcode.</title>
80 <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>
81 <xi:include href="examples-xml/lorismorph.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
82 </example>
83 </para>
84 </refsect1>
85
86 <refsect1>
87 <title>Credits</title>
88 <para>This implementation of the Loris unit generators was written by Kelly
89 Fitz (<ulink
90 url="mailto:[email protected]">[email protected]</ulink>). It is patterned after a prototype implementation of the
91 <emphasis>lorisplay</emphasis> unit generator written by Corbin Champion, and based on the
92 method of Bandwidth-Enhanced Additive Synthesis and on the sound
93 morphing algorithms implemented in the Loris library for sound
94 modeling and manipulation. The opcodes were further adapted as a
95 plugin for Csound 5 by Michael gogins.</para>
96 </refsect1>
97
98 </refentry>