Debian Codegraph @

opcodes/STKSimple.xml

raw symbols SCIP
1 <refentry id="STKSimple">
2 <indexterm id="IndexStksimple"><primary>STKSimple</primary></indexterm>
3 <refentryinfo><title>Signal Generators:STK Opcodes</title></refentryinfo>
4 <refmeta>
5 <refentrytitle>STKSimple</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>STKSimple</refname>
10 <refpurpose>
11 STKSimple is a wavetable/noise instrument.
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 STKSimple is a wavetable/noise instrument.
21 It combines a looped wave, a noise source, a biquad resonance filter, a one-pole filter, and an ADSR envelope to create some interesting sounds.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>asignal <command>STKSimple</command> ifrequency, iamplitude, [kpos, kv1[, kcross, kv2[, kenv, kv3[, kgain, kv4]]]]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>ifrequency</emphasis> -- Frequency of note played, in Hertz.
34 </para>
35
36 <para>
37 <emphasis>iamplitude</emphasis> -- Amplitude of note played (range 0-1).
38 </para>
39 </refsect1>
40
41 <refsect1>
42 <title>Performance</title>
43 <para><emphasis>kpos</emphasis> -- controller 2, position of filter pole. Value range of kv1 is 0-127.</para>
44 <para><emphasis>kcross</emphasis> -- controller 4, noise/pitched cross-fade. Value range of kv2 is 0-127.</para>
45 <para><emphasis>kenv</emphasis> -- controller 11, rate of envelope. Value range of kv3 is 0-127.</para>
46 <para><emphasis>kgain</emphasis> -- controller 128, gain. Value range of kv4 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 Simple 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 STKSimple opcode. It uses the file <ulink url="examples/STKSimple.csd"><citetitle>STKSimple.csd</citetitle></ulink>.
68
69 <example>
70 <title>Example of the STKSimple opcode.</title>
71 <xi:include href="examples-xml/STKSimple.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