| 1 | <refentry id="STKSaxofony"> |
| 2 | <indexterm id="IndexStksaxofony"><primary>STKSaxofony</primary></indexterm> |
| 3 | <refentryinfo><title>Signal Generators:STK Opcodes</title></refentryinfo> |
| 4 | <refmeta> |
| 5 | <refentrytitle>STKSaxofony</refentrytitle> |
| 6 | </refmeta> |
| 7 | |
| 8 | <refnamediv> |
| 9 | <refname>STKSaxofony</refname> |
| 10 | <refpurpose> |
| 11 | STKSaxofony is a faux conical bore reed instrument. </refpurpose> |
| 12 | </refnamediv> |
| 13 | |
| 14 | <refsect1> |
| 15 | <title>Description</title> |
| 16 | <para>Plugin opcode in stkopd. This opcode is part of the plugin repository and has to be installed separately. |
| 17 | The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para> |
| 18 | <para> |
| 19 | STKSaxofony is a faux conical bore reed instrument. |
| 20 | This opcode uses a "hybrid" digital waveguide instrument that can generate a variety of wind-like sounds. It has also been referred to as the "blowed string" model. |
| 21 | The waveguide section is essentially that of a string, with one rigid and one lossy termination. The non-linear function is a reed table. |
| 22 | The string can be "blown" at any point between the terminations, though just as with strings, it is impossible to excite the system at either end. |
| 23 | If the excitation is placed at the string mid-point, the sound is that of a clarinet. At points closer to the "bridge", the sound is closer to that of a saxophone.</para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis>asignal <command>STKSaxofony</command> ifrequency, iamplitude, [kstiff, kv1[, kapert, kv2[, kblow, kv3[, knoise, kv4[, klfo, kv5[, klfodepth, kv6[, kbreath, kv7]]]]]]]</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialization</title> |
| 33 | <para> |
| 34 | <emphasis>ifrequency</emphasis> -- Frequency of note played, in Hertz. |
| 35 | </para> |
| 36 | |
| 37 | <para> |
| 38 | <emphasis>iamplitude</emphasis> -- Amplitude of note played (range 0-1). |
| 39 | </para> |
| 40 | </refsect1> |
| 41 | |
| 42 | <refsect1> |
| 43 | <title>Performance</title> |
| 44 | <para><emphasis>kstiff</emphasis> -- controller 2, stiffness of reed. Value range of kv1 is 0-127.</para> |
| 45 | <para><emphasis>kapert</emphasis> -- controller 26, reed aperture. Value range of kv2 is 0-127.</para> |
| 46 | <para><emphasis>kblow</emphasis> -- controller 11, blow position. Value range of kv3 is 0-127.</para> |
| 47 | <para><emphasis>knoise</emphasis> -- controller 4, noise gain. Value range of kv4 is 0-127.</para> |
| 48 | <para><emphasis>klfo</emphasis> -- controller 29, speed of low-frequency oscillator. Value range of kv5 is 0-127.</para> |
| 49 | <para><emphasis>klfodepth</emphasis> -- controller 1, depth of low-frequency oscillator. Value range of kv6 is 0-127.</para> |
| 50 | <para><emphasis>kbreath</emphasis> -- controller 128, breath pressure. Value range of kv7 is 0-127.</para> |
| 51 | </refsect1> |
| 52 | |
| 53 | <refsect1> |
| 54 | <note> |
| 55 | <title>Note</title> |
| 56 | <para> |
| 57 | The code for this opcode is taken directly from the Saxofony class in the Synthesis Toolkit in C++ by Perry R. Cook and Gary P. Scavone. More on the STK classes can be found here: |
| 58 | <ulink url="https://ccrma.stanford.edu/software/stk/classes.html"><citetitle>https://ccrma.stanford.edu/software/stk/classes.html</citetitle></ulink> |
| 59 | </para> |
| 60 | <para> |
| 61 | <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. |
| 62 | 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. |
| 63 | 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. |
| 64 | </para> |
| 65 | </note> |
| 66 | </refsect1> |
| 67 | |
| 68 | <refsect1> |
| 69 | <title>Examples</title> |
| 70 | <para> |
| 71 | Here is an example of the STKSaxofony opcode. It uses the file <ulink url="examples/STKSaxofony.csd"><citetitle>STKSaxofony.csd</citetitle></ulink>. |
| 72 | |
| 73 | <example> |
| 74 | <title>Example of the STKSaxofony opcode.</title> |
| 75 | <xi:include href="examples-xml/STKSaxofony.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 76 | </example> |
| 77 | </para> |
| 78 | </refsect1> |
| 79 | |
| 80 | <refsect1> |
| 81 | <title>See also</title> |
| 82 | <para><link linkend="STKTop"><citetitle>STK Opcodes</citetitle></link></para> |
| 83 | </refsect1> |
| 84 | |
| 85 | <refsect1> |
| 86 | <title>Credits</title> |
| 87 | <para> |
| 88 | <simplelist> |
| 89 | <member>Author: &namemichael; (after Georg Essl)</member> |
| 90 | <member>Irreducible Productions</member> |
| 91 | <member>New York, NY</member> |
| 92 | </simplelist> |
| 93 | </para> |
| 94 | <para>New in Csound version 5.11</para> |
| 95 | </refsect1> |
| 96 | </refentry> |
| 97 |