Debian Codegraph @

opcodes/wgflute.xml

raw symbols SCIP
1
2 <refentry id="wgflute">
3 <indexterm id="IndexWgflute"><primary>wgflute</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Waveguide Physical Modeling</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>wgflute</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>wgflute</refname>
13 <refpurpose>
14 Creates a tone similar to a flute.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Audio output is a tone similar to a flute, using a physical model developed from &nameperry;, but re-coded for Csound.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ares <command>wgflute</command> kamp, kfreq, kjet, iatt,
28 idetk, kngain, kvibf, kvamp [, ifn] [, iminfreq] [, ijetrf] [, iendrf]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>iatt</emphasis> -- time in seconds to reach full blowing pressure. 0.1 seems to correspond to reasonable playing.
35 </para>
36
37 <para>
38 <emphasis>idetk</emphasis> -- time in seconds taken to stop blowing. 0.1 is a smooth ending
39 </para>
40
41 <para>
42 <emphasis>ifn</emphasis> (optional) -- table of shape of vibrato, defaults
43 to the usual sine table.
44 </para>
45
46 <para>
47 <emphasis>iminfreq</emphasis> (optional) -- lowest frequency at which the instrument will play. If it is omitted it is taken to be the same as the initial kfreq. If <emphasis>iminfreq</emphasis> is negative, initialization will be skipped.
48 </para>
49
50 <para>
51 <emphasis>ijetrf</emphasis> (optional, default=0.5) -- amount of reflection in the breath jet that powers the flute. Default value is 0.5.
52 </para>
53
54 <para>
55 <emphasis>iendrf</emphasis> (optional, default=0.5) -- reflection coefficient of the breath jet. Default value is 0.5. Both <emphasis>ijetrf</emphasis> and <emphasis>iendrf</emphasis> are used in the calculation of the pressure differential.
56 </para>
57 </refsect1>
58
59 <refsect1>
60 <title>Performance</title>
61 <para>
62 <emphasis>kamp</emphasis> -- Amplitude of note.
63 </para>
64
65 <para>
66 <emphasis>kfreq</emphasis> -- Frequency of note played. While it can be varied in performance, I have not tried it.
67 </para>
68
69 <para>
70 <emphasis>kjet</emphasis> -- a parameter controlling the air jet. Values should be positive, and about 0.3. The useful range is approximately 0.08 to 0.56.
71 </para>
72
73 <para>
74 <emphasis>kngain</emphasis> -- amplitude of the noise component, about 0 to 0.5
75 </para>
76
77 <para>
78 <emphasis>kvibf</emphasis> -- frequency of vibrato in Hertz. Suggested range is 0 to 12
79 </para>
80
81 <para>
82 <emphasis>kvamp</emphasis> -- amplitude of the vibrato
83 </para>
84 </refsect1>
85
86 <refsect1>
87 <title>Examples</title>
88 <para>
89 Here is an example of the wgflute opcode. It uses the file <ulink url="examples/wgflute.csd"><citetitle>wgflute.csd</citetitle></ulink>.
90
91 <example>
92 <title>Example of the wgflute opcode.</title>
93
94
95
96 <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>
97 <xi:include href="examples-xml/wgflute.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
98 </example>
99 </para>
100 </refsect1>
101
102 <refsect1>
103 <title>See also</title>
104 <para><link linkend="SiggenWavguide"><citetitle>Waveguide Physical Modeling</citetitle></link></para>
105 </refsect1>
106
107 <refsect1>
108 <title>Credits</title>
109 <para>
110 <simplelist>
111 <member>Author: &namejohn; (after &nameperry;)</member>
112 <member>University of Bath, Codemist Ltd.</member>
113 <member>Bath, UK</member>
114 </simplelist>
115 </para>
116
117 <para>New in Csound version 3.47</para>
118 <para>ifn optional in 6.06</para>
119 </refsect1>
120 </refentry>