| 1 | <refentry id="STKRhodey"> |
| 2 | <indexterm id="IndexStkrhodey"><primary>STKRhodey</primary></indexterm> |
| 3 | <refentryinfo><title>Signal Generators:STK Opcodes</title></refentryinfo> |
| 4 | <refmeta> |
| 5 | <refentrytitle>STKRhodey</refentrytitle> |
| 6 | </refmeta> |
| 7 | |
| 8 | <refnamediv> |
| 9 | <refname>STKRhodey</refname> |
| 10 | <refpurpose> |
| 11 | STK Fender Rhodes-like electric piano FM 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 | STK Fender Rhodes-like electric piano FM synthesis instrument.</para> |
| 21 | <para> |
| 22 | This opcode implements an instrument based on two simple FM Pairs |
| 23 | summed together, also referred to as algorithm 5 of the Yamaha TX81Z. |
| 24 | It simulates the sound of a Rhodes electric piano, and some related sounds. |
| 25 | </para> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Syntax</title> |
| 30 | <synopsis>asignal <command>STKRhodey</command> ifrequency, iamplitude, [kmod, kv1[, kcross, kv2[, klfo, kv3[, klfodepth, kv4[, kadsr, kv5]]]]]</synopsis> |
| 31 | </refsect1> |
| 32 | |
| 33 | <refsect1> |
| 34 | <title>Initialization</title> |
| 35 | <para> |
| 36 | <emphasis>ifrequency</emphasis> -- Frequency of note played, in Hertz. |
| 37 | </para> |
| 38 | |
| 39 | <para> |
| 40 | <emphasis>iamplitude</emphasis> -- Amplitude of note played (range 0-1). |
| 41 | </para> |
| 42 | </refsect1> |
| 43 | |
| 44 | <refsect1> |
| 45 | <title>Performance</title> |
| 46 | <para><emphasis>kmod</emphasis> -- controller 2, modulator index 1. Value range of kv1 is 0-127.</para> |
| 47 | <para><emphasis>kcross</emphasis> -- controller 4, crossfade of outputs. Value range of kv2 is 0-127.</para> |
| 48 | <para><emphasis>klfo</emphasis> -- controller 11, speed of low-frequency oscillator. Value range of kv3 is 0-127.</para> |
| 49 | <para><emphasis>klfodepth</emphasis> -- controller1, depth of low-frequency oscillator. Value range of kv4 is 0-127.</para> |
| 50 | <para><emphasis>kadsr</emphasis> -- controller 128, ADSR 2 and 4 target. Value range of kv5 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 Rhodey 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 STKRhodey opcode. It uses the file <ulink url="examples/STKRhodey.csd"><citetitle>STKRhodey.csd</citetitle></ulink>. |
| 72 | |
| 73 | <example> |
| 74 | <title>Example of the STKRhodey opcode.</title> |
| 75 | <xi:include href="examples-xml/STKRhodey.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> |
| 97 |