Debian Codegraph @

opcodes/STKBrass.xml

raw symbols SCIP
1 <refentry id="STKBrass">
2 <indexterm id="IndexStkbrass"><primary>STKBrass</primary></indexterm>
3 <refentryinfo><title>Signal Generators:STK Opcodes</title></refentryinfo>
4 <refmeta>
5 <refentrytitle>STKBrass</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>STKBrass</refname>
10 <refpurpose>
11 STKBrass is a simple brass 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 STKBrass uses a simple brass instrument waveguide model, a la Cook.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>asignal <command>STKBrass</command> ifrequency, iamplitude, [klip, kv1[, kslide, kv2[, klfo, kv3[, klfodepth, kv4[, kvol, 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>klip</emphasis> -- controller 2, lip tension. Value range of kv1 is 0-127.</para>
43 <para><emphasis>kslide</emphasis> -- controller 4, slide length. Value range of kv2 is 0-127.</para>
44 <para><emphasis>klfo</emphasis> -- controller 11, speed of low-frequency oscillator. Value range of kv3 is 0-127.</para>
45 <para><emphasis>klfodepth</emphasis> -- controller 1, depth of low-frequency oscillator. Value range of kv4 is 0-127.</para>
46 <para><emphasis>kvol</emphasis> -- controller 128, volume. 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 Brass 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 STKBrass opcode. It uses the file <ulink url="examples/STKBrass.csd"><citetitle>STKBrass.csd</citetitle></ulink>.
68
69 <example>
70 <title>Example of the STKBrass opcode.</title>
71 <xi:include href="examples-xml/STKBrass.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