Debian Codegraph @

opcodes/marimba.xml

raw symbols SCIP
1
2 <refentry id="marimba">
3 <indexterm id="IndexMarimba"><primary>marimba</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Models and Emulations</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>marimba</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>marimba</refname>
13 <refpurpose>
14 Physical model related to the striking of a wooden block.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Audio output is a tone related to the striking of a wooden block as found in a marimba. The method is 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>marimba</command> kamp, kfreq, ihrd, ipos, imp, kvibf, kvamp, ivibfn, idec \
28 [, idoubles] [, itriples]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>ihrd</emphasis> -- the hardness of the stick used in the strike. A range of 0 to 1 is used. 0.5 is a suitable value.
35 </para>
36
37 <para>
38 <emphasis>ipos</emphasis> -- where the block is hit, in the range 0 to 1.
39 </para>
40
41 <para>
42 <emphasis>imp</emphasis> -- a table of the strike impulses. The file <ulink url="examples/marmstk1.wav"><citetitle>marmstk1.wav</citetitle></ulink> is a suitable function from measurements and can be loaded with a <link linkend="GEN01"><citetitle>GEN01</citetitle></link> table. It is also available at <ulink
43 url="ftp://ftp.cs.bath.ac.uk/pub/dream/documentation/sounds/modelling/"><citetitle>ftp://ftp.cs.bath.ac.uk/pub/dream/documentation/sounds/modelling/</citetitle></ulink>.
44 </para>
45
46 <para>
47 <emphasis>ivfn</emphasis> -- shape of vibrato, usually a sine table, created by a function
48 </para>
49
50 <para>
51 <emphasis>idec</emphasis> -- time before end of note when damping is introduced
52 </para>
53
54 <para>
55 <emphasis>idoubles</emphasis> (optional) -- percentage of double strikes. Default is 40%.
56 </para>
57
58 <para>
59 <emphasis>itriples</emphasis> (optional) -- percentage of triple strikes. Default is 20%.
60 </para>
61 </refsect1>
62
63 <refsect1>
64 <title>Performance</title>
65 <para>
66 <emphasis>kamp</emphasis> -- Amplitude of note.
67 </para>
68
69 <para>
70 <emphasis>kfreq</emphasis> -- Frequency of note played.
71 </para>
72
73 <para>
74 <emphasis>kvibf</emphasis> -- frequency of vibrato in Hertz. Suggested range is 0 to 12
75 </para>
76
77 <para>
78 <emphasis>kvamp</emphasis> -- amplitude of the vibrato
79 </para>
80 </refsect1>
81
82 <refsect1>
83 <title>Examples</title>
84 <para>
85 Here is an example of the marimba opcode. It uses the file <ulink url="examples/marimba.csd"><citetitle>marimba.csd</citetitle></ulink>, and <ulink url="examples/marmstk1.wav"><citetitle>marmstk1.wav</citetitle></ulink>.
86
87 <example>
88 <title>Example of the marimba opcode.</title>
89
90
91
92 <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>
93 <xi:include href="examples-xml/marimba.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
94 </example>
95 </para>
96 </refsect1>
97
98 <refsect1>
99 <title>See Also</title>
100 <para>
101 <link linkend="SiggenModels"><citetitle>Models and Emulations</citetitle></link>
102 </para>
103 </refsect1>
104
105 <refsect1>
106 <title>Credits</title>
107 <para>
108 <simplelist>
109 <member>Author: &namejohn; (after &nameperry;)</member>
110 <member>University of Bath, Codemist Ltd.</member>
111 <member>Bath, UK</member>
112 </simplelist>
113 </para>
114
115 <para>New in Csound version 3.47</para>
116 </refsect1>
117 </refentry>