Debian Codegraph @

opcodes/wgbrass.xml

raw symbols SCIP
1
2 <refentry id="wgbrass">
3 <indexterm id="IndexWgbrass"><primary>wgbrass</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Waveguide Physical Modeling</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>wgbrass</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>wgbrass</refname>
13 <refpurpose>
14 Creates a tone related to a brass instrument.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Audio output is a tone related to a brass instrument, 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>wgbrass</command> kamp, kfreq, ktens, iatt, kvibf, kvamp \
28 [, ifn] [, iminfreq]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>iatt</emphasis> -- time taken to reach full pressure
35 </para>
36
37 <para>
38 <emphasis>ifn</emphasis> -- optional table of shape of vibrato,
39 defaults to a sine table.
40 </para>
41
42 <para>
43 <emphasis>iminfreq</emphasis> -- lowest frequency at which the instrument will play. If it is omitted it is taken to be the same as the initial <emphasis>kfreq</emphasis>. If <emphasis>iminfreq</emphasis> is negative, initialization will be skipped.
44 </para>
45 </refsect1>
46
47 <refsect1>
48 <title>Performance</title>
49 <para>
50 A note is played on a brass-like instrument, with the arguments as below.
51 </para>
52
53 <para>
54 <emphasis>kamp</emphasis> -- Amplitude of note.
55 </para>
56
57 <para>
58 <emphasis>kfreq</emphasis> -- Frequency of note played.
59 </para>
60
61 <para>
62 <emphasis>ktens</emphasis> -- lip tension of the player. Suggested value is about 0.4
63 </para>
64
65 <para>
66 <emphasis>kvibf</emphasis> -- frequency of vibrato in Hertz. Suggested range is 0 to 12
67 </para>
68
69 <para>
70 <emphasis>kvamp</emphasis> -- amplitude of the vibrato
71 </para>
72
73 <warning>
74 <title>NOTE</title>
75 <para>
76 This is rather poor, and at present uncontrolled. Needs revision, and possibly more parameters.
77 </para>
78 </warning>
79 </refsect1>
80
81 <refsect1>
82 <title>Examples</title>
83 <para>
84 Here is an example of the wgbrass opcode. It uses the file <ulink url="examples/wgbrass.csd"><citetitle>wgbrass.csd</citetitle></ulink>.
85
86 <example>
87 <title>Example of the wgbrass opcode.</title>
88
89
90
91 <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>
92 <xi:include href="examples-xml/wgbrass.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
93 </example>
94 </para>
95 </refsect1>
96
97 <refsect1>
98 <title>See also</title>
99 <para><link linkend="SiggenWavguide"><citetitle>Waveguide Physical Modeling</citetitle></link></para>
100 </refsect1>
101
102 <refsect1>
103 <title>Credits</title>
104 <para>
105 <simplelist>
106 <member>Author: &namejohn; (after &nameperry;)</member>
107 <member>University of Bath, Codemist Ltd.</member>
108 <member>Bath, UK</member>
109 </simplelist>
110 </para>
111
112 <para>New in Csound version 3.47</para>
113 <para>ifn optional in 6.06</para>
114 </refsect1>
115 </refentry>