Debian Codegraph @

opcodes/streson.xml

raw symbols SCIP
1
2 <refentry id="streson">
3 <indexterm id="IndexStreson"><primary>streson</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Waveguide Physical Modeling</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>streson</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>streson</refname>
13 <refpurpose>
14 A string resonator with variable fundamental frequency.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 An audio signal is modified by a string resonator with variable fundamental frequency.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ares <command>streson</command> asig, kfr, kfdbgain</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Performance</title>
32 <para>
33 <emphasis>asig</emphasis> -- the input audio signal.
34 </para>
35
36 <para>
37 <emphasis>kfr</emphasis> -- the fundamental frequency of the string.
38 </para>
39
40 <para>
41 <emphasis>kfdbgain</emphasis> -- feedback gain, typically between 0 and 1,
42 of the internal delay line. A value close to 1 creates a slower
43 decay and a more pronounced resonance. Small values may leave
44 the input signal unaffected. Depending on the filter frequency,
45 typical values are &gt; 0.9. Values down to -1 are also useful.
46 </para>
47
48 <para>
49 <emphasis>streson</emphasis> passes the input <emphasis>asig</emphasis> through a network composed of comb, low-pass and all-pass filters, similar to the one used in some versions of the Karplus-Strong algorithm, creating a string resonator effect. The fundamental frequency of the <quote>string</quote> is controlled by the k-rate variable <emphasis>kfr</emphasis>.This opcode can be used to simulate sympathetic resonances to an input signal.
50 </para>
51 <para>
52 See <link linkend="MiscModalFreq"><citetitle>Modal Frequency Ratios</citetitle></link> for frequency ratios of real instruments which can be used to determine the values of <emphasis>kfrq</emphasis>.
53 </para>
54
55 <para>
56 <emphasis>streson</emphasis> is an adaptation of the StringFlt object of the SndObj Sound Object Library developed by the author.
57 </para>
58 </refsect1>
59
60 <refsect1>
61 <title>Examples</title>
62 <para>
63 Here is an example of the streson opcode. It uses the file <ulink url="examples/streson.csd"><citetitle>streson.csd</citetitle></ulink>.
64 <example>
65 <title>Example of the streson opcode.</title>
66 <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>
67 <xi:include href="examples-xml/streson.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
68 </example>
69 </para>
70 </refsect1>
71
72 <refsect1>
73 <title>See also</title>
74 <para><link linkend="SigmodWavguide"><citetitle>Waveguides</citetitle></link></para>
75 </refsect1>
76
77 <refsect1>
78 <title>Credits</title>
79 <para>
80 <simplelist>
81 <member>Author: &namevictor;</member>
82 <member>Music Department</member>
83 <member>National University of Ireland, Maynooth</member>
84 <member>Maynooth, Co. Kildare</member>
85 <member>1998</member>
86 </simplelist>
87 </para>
88 <para>New in Csound version 3.494</para>
89 </refsect1>
90 </refentry>