Debian Codegraph @

opcodes/STKMandolin.xml

raw symbols SCIP
1 <refentry id="STKMandolin">
2 <indexterm id="IndexStkmandolin"><primary>STKMandolin</primary></indexterm>
3 <refentryinfo><title>Signal Generators:STK Opcodes</title></refentryinfo>
4 <refmeta>
5 <refentrytitle>STKMandolin</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>STKMandolin</refname>
10 <refpurpose>
11 STKMandolin produces mamdolin-like 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 STKMandolin produces mamdolin-like sounds, using "commuted synthesis" techniques to model a mandolin instrument.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>asignal <command>STKMandolin</command> ifrequency, iamplitude, [kbody, kv1[, kpos, kv2[, ksus, kv3[, kdetune, kv4[, kmic, kv5]]]]]</synopsis>
27 </refsect1>
28
29 <refsect1>
30 <title>Initialization</title>
31 <para>
32 <emphasis>ifrequency</emphasis> -- Frequency of note played, in Hertz.
33 </para>
34
35 <para>
36 <emphasis>iamplitude</emphasis> -- Amplitude of note played (range 0-1).
37 </para>
38 </refsect1>
39
40 <refsect1>
41 <title>Performance</title>
42 <para><emphasis>kbody</emphasis> -- controller 2, size of body. Value range of kv1 is 0-127.</para>
43 <para><emphasis>kpos</emphasis> -- controller 4, pluck position. Value range of kv2 is 0-127.</para>
44 <para><emphasis>ksus</emphasis> -- controller 11, string sustain. Value range of kv3 is 0-127.</para>
45 <para><emphasis>kdetune</emphasis> -- controller 1, string detuning. Value range of kv4 is 0-127.</para>
46 <para><emphasis>kmic</emphasis> -- controller 128, position of microphone. Value range of kv5 is 0-127.</para>
47 </refsect1>
48
49 <refsect1>
50 <note>
51 <title>Note</title>
52 <para>
53 The code for this opcode is taken directly from the Mandolin class in the Synthesis Toolkit in C++ by Perry R. Cook and Gary P. Scavone. More on the STK classes can be found here:
54 <ulink url="https://ccrma.stanford.edu/software/stk/classes.html"><citetitle>https://ccrma.stanford.edu/software/stk/classes.html</citetitle></ulink>
55 </para>
56 <para>
57 <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.
58 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.
59 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.
60 </para>
61 </note>
62 </refsect1>
63
64 <refsect1>
65 <title>Examples</title>
66 <para>
67 Here is an example of the STKMandolin opcode. It uses the file <ulink url="examples/STKMandolin.csd"><citetitle>STKMandolin.csd</citetitle></ulink>.
68
69 <example>
70 <title>Example of the STKMandolin opcode.</title>
71 <xi:include href="examples-xml/STKMandolin.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
72 </example>
73 </para>
74 </refsect1>
75
76 <refsect1>
77 <title>See also</title>
78 <para><link linkend="STKTop"><citetitle>STK Opcodes</citetitle></link></para>
79 </refsect1>
80
81 <refsect1>
82 <title>Credits</title>
83 <para>
84 <simplelist>
85 <member>Author: &namemichael; (after &nameperry;)</member>
86 <member>Irreducible Productions</member>
87 <member>New York, NY</member>
88 </simplelist>
89 </para>
90 <para>New in Csound version 5.11</para>
91 </refsect1>
92 </refentry>
93