Debian Codegraph @

opcodes/shaker.xml

raw symbols SCIP
1
2 <refentry id="shaker">
3 <indexterm id="IndexShaker"><primary>shaker</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Models and Emulations</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>shaker</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>shaker</refname>
11 <refpurpose>
12 Sounds like the shaking of a maraca or similar gourd instrument.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Audio output is a tone related to the shaking of a maraca or similar gourd instrument. The method is a physically inspired model developed from &nameperry;, but re-coded for Csound.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>ares <command>shaker</command> kamp, kfreq, kbeans, kdamp, ktimes [, idecay]</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>idecay</emphasis> -- If present indicates for how long at the end of the note the shaker is to be damped. The default value is zero.
32 </para>
33 </refsect1>
34
35 <refsect1>
36 <title>Performance</title>
37 <para>
38 A note is played on a maraca-like instrument, with the arguments as below.
39 </para>
40
41 <para>
42 <emphasis>kamp</emphasis> -- Amplitude of note.
43 </para>
44
45 <para>
46 <emphasis>kfreq</emphasis> -- Frequency of note played.
47 </para>
48
49 <para>
50 <emphasis>kbeans</emphasis> -- The number of beans in the gourd. A value of 8 seems suitable.
51 </para>
52
53 <para>
54 <emphasis>kdamp</emphasis> -- The damping value of the shaker. Values of 0.98 to 1 seems suitable, with 0.99 a reasonable default.
55 </para>
56
57 <para>
58 <emphasis>ktimes</emphasis> -- Number of times shaken.
59 </para>
60
61 <note>
62 <title>Note</title>
63 <para>
64 The argument <emphasis>knum</emphasis> was redundant, so it was removed in version 3.49.
65 </para>
66 </note>
67 </refsect1>
68
69 <refsect1>
70 <title>Examples</title>
71 <para>
72 Here is an example of the shaker opcode. It uses the file <ulink url="examples/shaker.csd"><citetitle>shaker.csd</citetitle></ulink>.
73
74 <example>
75 <title>Example of the shaker opcode.</title>
76
77
78
79 <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>
80 <xi:include href="examples-xml/shaker.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
81 </example>
82 </para>
83 </refsect1>
84
85 <refsect1>
86 <title>See Also</title>
87 <para>
88 <link linkend="SiggenModels"><citetitle>Models and Emulations</citetitle></link>
89 </para>
90 </refsect1>
91
92 <refsect1>
93 <title>Credits</title>
94 <para>
95 <simplelist>
96 <member>Author: &namejohn; (after &nameperry;)</member>
97 <member>University of Bath, Codemist Ltd.</member>
98 <member>Bath, UK</member>
99 </simplelist>
100 </para>
101
102 <para>New in Csound version 3.47</para>
103 </refsect1>
104 </refentry>