Debian Codegraph @

opcodes/barmodel.xml

raw symbols SCIP
1
2 <refentry id="barmodel">
3 <indexterm id="IndexBarmodel"><primary>barmodel</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Models and Emulations</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>barmodel</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>barmodel</refname>
13 <refpurpose>
14 Creates a tone similar to a struck metal bar.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Audio output is a tone similar to a struck metal bar, using a
22 physical model developed from solving the partial differential
23 equation. There are controls over the boundary conditions as
24 well as the bar characteristics.
25 </para>
26 </refsect1>
27
28 <refsect1>
29 <title>Syntax</title>
30 <synopsis>ares <command>barmodel</command> kbcL, kbcR, iK, ib, kscan, iT30, ipos, ivel, iwid</synopsis>
31 </refsect1>
32
33 <refsect1>
34 <title>Initialization</title>
35 <para>
36 <emphasis>iK</emphasis> -- dimensionless stiffness parameter. If
37 this parameter is negative then the initialisation is skipped and
38 the previous state of the bar is continued.
39 </para>
40
41 <para>
42 <emphasis>ib</emphasis> -- high-frequency loss parameter (keep this small).
43 </para>
44
45 <para>
46 <emphasis>iT30</emphasis> -- 30 db decay time in seconds.
47 </para>
48
49 <para>
50 <emphasis>ipos</emphasis> -- position along the bar that the strike occurs.
51 </para>
52
53 <para>
54 <emphasis>ivel</emphasis> -- normalized strike velocity.
55 </para>
56
57 <para>
58 <emphasis>iwid</emphasis> -- spatial width of strike.
59 </para>
60
61 </refsect1>
62
63 <refsect1>
64 <title>Performance</title>
65 <para>
66 A note is played on a metalic bar, with the arguments as below.
67 </para>
68
69 <para>
70 <emphasis>kbcL</emphasis> -- Boundary condition at left end of
71 bar (1 is clamped, 2 pivoting and 3 free).
72 </para>
73
74 <para>
75 <emphasis>kbcR</emphasis> -- Boundary condition at right end of
76 bar (1 is clamped, 2 pivoting and 3 free).
77 </para>
78
79 <para>
80 <emphasis>kscan</emphasis> -- Speed of scanning the output location.
81 </para>
82
83 <para>
84 Note that changing the boundary conditions during playing may
85 lead to glitches and is made available as an experiment. The use of
86 a non-zero <emphasis>kscan</emphasis> can give apparent re-introduction of sound due to
87 modulation.
88 </para>
89 </refsect1>
90
91 <refsect1>
92 <title>Examples</title>
93 <para>
94 Here is an example of the barmodel opcode. It uses the file <ulink url="examples/barmodel.csd"><citetitle>barmodel.csd</citetitle></ulink>.
95
96 <example>
97 <title>Example of the barmodel opcode.</title>
98
99
100
101 <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>
102 <xi:include href="examples-xml/barmodel.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
103 </example>
104 </para>
105 </refsect1>
106
107 <refsect1>
108 <title>See Also</title>
109 <para>
110 <link linkend="SiggenModels"><citetitle>Models and Emulations</citetitle></link>
111 </para>
112 </refsect1>
113
114 <refsect1>
115 <title>Credits</title>
116 <para>
117 <simplelist>
118 <member>Author: Stefan Bilbao </member>
119 <member>University of Edinburgh, UK</member>
120 <member>Author: &namejohn; </member>
121 <member>University of Bath, Codemist Ltd.</member>
122 <member>Bath, UK</member>
123 </simplelist>
124 </para>
125
126 <para>New in Csound version 5.01</para>
127 </refsect1>
128 </refentry>