| 1 | |
| 2 | <refentry id="wgpluck"> |
| 3 | <indexterm id="IndexWgpluck"><primary>wgpluck</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Waveguide Physical Modeling</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>wgpluck</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>wgpluck</refname> |
| 11 | <refpurpose> |
| 12 | A high fidelity simulation of a plucked string. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | A high fidelity simulation of a plucked string, using interpolating delay-lines. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis>ares <command>wgpluck</command> icps, iamp, kpick, iplk, idamp, ifilt, axcite</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Initialization</title> |
| 30 | <para> |
| 31 | <emphasis>icps</emphasis> -- frequency of plucked string |
| 32 | </para> |
| 33 | |
| 34 | <para> |
| 35 | <emphasis>iamp</emphasis> -- amplitude of string pluck |
| 36 | </para> |
| 37 | |
| 38 | <para> |
| 39 | <emphasis>iplk</emphasis> -- point along the string, where it is plucked, in the range of 0 to 1. 0 = no pluck |
| 40 | </para> |
| 41 | |
| 42 | <para> |
| 43 | <emphasis>idamp</emphasis> -- damping of the note. This controls the overall decay of the string. The greater the value of <emphasis>idamp</emphasis>, the faster the decay. Negative values will cause an increase in output over time. |
| 44 | </para> |
| 45 | |
| 46 | <para> |
| 47 | <emphasis>ifilt</emphasis> -- control the attenuation of the filter at the bridge. Higher values cause the higher harmonics to decay faster. |
| 48 | </para> |
| 49 | </refsect1> |
| 50 | |
| 51 | <refsect1> |
| 52 | <title>Performance</title> |
| 53 | <para> |
| 54 | <emphasis>kpick</emphasis> -- proportion of the way along the point to sample the output. |
| 55 | </para> |
| 56 | |
| 57 | <para> |
| 58 | <emphasis>axcite</emphasis> -- a signal which excites the string. |
| 59 | </para> |
| 60 | |
| 61 | <para> |
| 62 | A string of frequency <emphasis>icps</emphasis> is plucked with |
| 63 | amplitude <emphasis>iamp</emphasis> at |
| 64 | point <emphasis>iplk</emphasis>. The decay of the virtual string |
| 65 | is controlled by <emphasis>idamp</emphasis> |
| 66 | and <emphasis>ifilt</emphasis> which simulate the bridge. The |
| 67 | oscillation is sampled at the point <emphasis>kpick</emphasis>, |
| 68 | and excited by the signal <emphasis>axcite</emphasis>. |
| 69 | </para> |
| 70 | </refsect1> |
| 71 | |
| 72 | <refsect1> |
| 73 | <title>Example</title> |
| 74 | <para> |
| 75 | Here is an example of the wgpluck opcode. It uses the |
| 76 | file <ulink url="examples/wgpluck.csd"><citetitle>wgpluck.csd</citetitle></ulink>. |
| 77 | |
| 78 | <example> |
| 79 | <title>An example of the wgpluck opcode.</title> |
| 80 | <para>See the |
| 81 | sections <link linkend="UsingRealTime"><citetitle>Real-time |
| 82 | Audio</citetitle></link> |
| 83 | and <link linkend="CommandFlags"><citetitle>Command Line |
| 84 | Flags</citetitle></link> for more information on using |
| 85 | command line flags.</para> |
| 86 | <xi:include href="examples-xml/wgpluck.csd.xml" |
| 87 | xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 88 | </example> |
| 89 | </para> |
| 90 | </refsect1> |
| 91 | |
| 92 | <refsect1> |
| 93 | <title>See also</title> |
| 94 | <para><link linkend="SiggenWavguide"><citetitle>Waveguide Physical Modeling</citetitle></link></para> |
| 95 | </refsect1> |
| 96 | |
| 97 | <refsect1> |
| 98 | <title>Credits</title> |
| 99 | <para> |
| 100 | <simplelist> |
| 101 | <member>Author: Michael A. Casey</member> |
| 102 | <member>M.I.T.</member> |
| 103 | <member>Cambridge, Mass.</member> |
| 104 | <member>1997</member> |
| 105 | </simplelist> |
| 106 | </para> |
| 107 | <para>New in Version 3.47</para> |
| 108 | </refsect1> |
| 109 | |
| 110 | </refentry> |