| 1 | <refentry id="STKVoicForm"> |
| 2 | <indexterm id="IndexStkvoicform"><primary>STKVoicForm</primary></indexterm> |
| 3 | <refentryinfo><title>Signal Generators:STK Opcodes</title></refentryinfo> |
| 4 | <refmeta> |
| 5 | <refentrytitle>STKVoicForm</refentrytitle> |
| 6 | </refmeta> |
| 7 | |
| 8 | <refnamediv> |
| 9 | <refname>STKVoicForm</refname> |
| 10 | <refpurpose> |
| 11 | STKVoicForm is a four formant synthesis 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 | STKVoicForm is a four formant synthesis instrument. |
| 21 | This instrument contains an excitation singing wavetable (looping wave with random and periodic vibrato, smoothing on frequency, etc.), excitation noise, and four sweepable complex resonances. |
| 22 | Measured formant data is included, and enough data is there to support |
| 23 | either parallel or cascade synthesis. In the floating point case |
| 24 | cascade synthesis is the most natural so that us what you will find here.</para> |
| 25 | </refsect1> |
| 26 | |
| 27 | <refsect1> |
| 28 | <title>Syntax</title> |
| 29 | <synopsis>asignal <command>STKVoicForm</command> ifrequency, iamplitude, [kmix, kv1[, ksel, kv2[, klfo, kv3[, klfodepth, kv4[, kloud, kv5]]]]]</synopsis> |
| 30 | </refsect1> |
| 31 | |
| 32 | <refsect1> |
| 33 | <title>Initialization</title> |
| 34 | <para> |
| 35 | <emphasis>ifrequency</emphasis> -- Frequency of note played, in Hertz. |
| 36 | </para> |
| 37 | |
| 38 | <para> |
| 39 | <emphasis>iamplitude</emphasis> -- Amplitude of note played (range 0-1). |
| 40 | </para> |
| 41 | </refsect1> |
| 42 | |
| 43 | <refsect1> |
| 44 | <title>Performance</title> |
| 45 | <para><emphasis>kmix</emphasis> -- controller 2, voiced/unvoiced mix. Value range of kv1 is 0-127.</para> |
| 46 | <para><emphasis>ksel</emphasis> -- controller 4, vowel/phoneme selection. Value range of kv2 is 0-127.</para> |
| 47 | <para><emphasis>klfo</emphasis> -- controller 11, speed of low-frequency oscillator. Value range of kv3 is 0-127.</para> |
| 48 | <para><emphasis>klfodepth</emphasis> -- controller 1, depth of low-frequency oscillator. Value range of kv4 is 0-127.</para> |
| 49 | <para><emphasis>kloud</emphasis> -- controller 128, loudness (spectral tilt). Value range of kv5 is 0-127.</para> |
| 50 | </refsect1> |
| 51 | |
| 52 | <refsect1> |
| 53 | <note> |
| 54 | <title>Note</title> |
| 55 | <para> |
| 56 | The code for this opcode is taken directly from the VoicForm class in the Synthesis Toolkit in C++ by Perry R. Cook and Gary P. Scavone. More on the STK classes can be found here: |
| 57 | <ulink url="https://ccrma.stanford.edu/software/stk/classes.html"><citetitle>https://ccrma.stanford.edu/software/stk/classes.html</citetitle></ulink> |
| 58 | </para> |
| 59 | <para> |
| 60 | <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. |
| 61 | 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. |
| 62 | 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. |
| 63 | </para> |
| 64 | </note> |
| 65 | </refsect1> |
| 66 | |
| 67 | <refsect1> |
| 68 | <title>Examples</title> |
| 69 | <para> |
| 70 | Here is an example of the STKVoicForm opcode. |
| 71 | It uses the file <ulink url="examples/STKVoicForm.csd"><citetitle>STKVoicForm.csd</citetitle></ulink>. |
| 72 | |
| 73 | <example> |
| 74 | <title>Example of the STKVoicForm opcode.</title> |
| 75 | <xi:include href="examples-xml/STKVoicForm.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 &nameperry;)</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> |