Debian Codegraph @

opcodes/STKWhistle.xml

raw symbols SCIP
1 <refentry id="STKWhistle">
2 <indexterm id="IndexStkwhistle"><primary>STKWhistle</primary></indexterm>
3 <refentryinfo><title>Signal Generators:STK Opcodes</title></refentryinfo>
4 <refmeta>
5 <refentrytitle>STKWhistle</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>STKWhistle</refname>
10 <refpurpose>
11 STKWhistle produces whistle sounds.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>Plugin opcode in stkopd. This opcode is part of the plugin repository and has to be installed separately.
18 The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para>
19 <para>
20 STKWhistle produces (police) whistle sounds. It uses a hybrid physical/spectral model of a police whistle (a la Cook).</para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>asignal <command>STKWhistle</command> ifrequency, iamplitude, [kmod, kv1[, knoise, kv2[, kfipfreq, kv3[, kfipgain, kv4[, kvol, kv5]]]]]</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>ifrequency</emphasis> -- Frequency of note played, in Hertz.
32 </para>
33
34 <para>
35 <emphasis>iamplitude</emphasis> -- Amplitude of note played (range 0-1).
36 </para>
37 </refsect1>
38
39 <refsect1>
40 <title>Performance</title>
41 <para><emphasis>kmod</emphasis> -- controller 2, blowing frequency modulation. Value range of kv1 is 0-127.</para>
42 <para><emphasis>knoise</emphasis> -- controller 4, noise gain. Value range of kv2 is 0-127.</para>
43 <para><emphasis>kfipfreq</emphasis> -- controller 11, fipple modulation frequency. Value range of kv3 is 0-127.</para>
44 <para><emphasis>kfipgain</emphasis> -- controller 1, fipple modulation gain. Value range of kv4 is 0-127.</para>
45 <para><emphasis>kvol</emphasis> -- controller 128, volume. Value range of kv5 is 0-127.</para>
46 </refsect1>
47
48 <refsect1>
49 <note>
50 <title>Note</title>
51 <para>
52 The code for this opcode is taken directly from the Whistle class in the Synthesis Toolkit in C++ by Perry R. Cook and Gary P. Scavone. More on the STK classes can be found here:
53 <ulink url="https://ccrma.stanford.edu/software/stk/classes.html"><citetitle>https://ccrma.stanford.edu/software/stk/classes.html</citetitle></ulink>
54 </para>
55 <para>
56 <emphasis>kc1, kv1, kc2, kv2, kc3, kv3, kc4, kv4, kc5, kv5, kc6, kv6, kc7, kv7, kc8, kv8</emphasis> -- Up to 8 optional k-rate controller pairs for the STK opcodes.
57 Each controller pair consists of a controller number (kc) followed by a controller value (kv). Both the controller numbers and the controller values are krate variables. However, during a performance, normally the controller numbers stay fixed while the corresponding controller values may change at any time.
58 The order of the controller pair is arbitrary, as long as they are after <emphasis>iamplitude</emphasis>. Also, it is not needed that all controller pairs are used.
59 </para>
60 </note>
61 </refsect1>
62
63 <refsect1>
64 <title>Examples</title>
65 <para>
66 Here is an example of the STKWhistle opcode. It uses the file <ulink url="examples/STKWhistle.csd"><citetitle>STKWhistle.csd</citetitle></ulink>.
67
68 <example>
69 <title>Example of the STKWhistle opcode.</title>
70 <xi:include href="examples-xml/STKWhistle.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
71 </example>
72 </para>
73 </refsect1>
74
75 <refsect1>
76 <title>See also</title>
77 <para><link linkend="STKTop"><citetitle>STK Opcodes</citetitle></link></para>
78 </refsect1>
79
80 <refsect1>
81 <title>Credits</title>
82 <para>
83 <simplelist>
84 <member>Author: &namemichael; (after &nameperry;)</member>
85 <member>Irreducible Productions</member>
86 <member>New York, NY</member>
87 </simplelist>
88 </para>
89 <para>New in Csound version 5.11</para>
90 </refsect1>
91 </refentry>
92