| 1 | |
| 2 | <refentry id="wgbow"> |
| 3 | <indexterm id="IndexWgbow"><primary>wgbow</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Waveguide Physical Modeling</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>wgbow</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>wgbow</refname> |
| 13 | <refpurpose> |
| 14 | Creates a tone similar to a bowed string. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Audio output is a tone similar to a bowed string, using a physical model developed from &nameperry;, but re-coded for Csound. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>ares <command>wgbow</command> kamp, kfreq, kpres, krat, kvibf, kvamp \ |
| 28 | [, ifn] [, iminfreq]</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialization</title> |
| 33 | <para> |
| 34 | <emphasis>ifn</emphasis> -- optional table of shape of vibrato, |
| 35 | defaults to a sine table. |
| 36 | </para> |
| 37 | |
| 38 | <para> |
| 39 | <emphasis>iminfreq</emphasis> (optional) -- lowest frequency at which the instrument will play. If it is omitted it is taken to be the same as the initial <emphasis>kfreq</emphasis>. If <emphasis>iminfreq</emphasis> is negative, initialization will be skipped. |
| 40 | </para> |
| 41 | </refsect1> |
| 42 | |
| 43 | <refsect1> |
| 44 | <title>Performance</title> |
| 45 | <para> |
| 46 | A note is played on a string-like instrument, with the arguments as below. |
| 47 | </para> |
| 48 | |
| 49 | <para> |
| 50 | <emphasis>kamp</emphasis> -- amplitude of note. |
| 51 | </para> |
| 52 | |
| 53 | <para> |
| 54 | <emphasis>kfreq</emphasis> -- frequency of note played. |
| 55 | </para> |
| 56 | |
| 57 | <para> |
| 58 | <emphasis>kpres</emphasis> -- a parameter controlling the pressure of the bow on the string. Values should be about 3. The useful range is approximately 1 to 5. |
| 59 | </para> |
| 60 | |
| 61 | <para> |
| 62 | <emphasis>krat</emphasis> -- the position of the bow along the string. Usual playing is about 0.127236. The suggested range is 0.025 to 0.23. |
| 63 | </para> |
| 64 | |
| 65 | <para> |
| 66 | <emphasis>kvibf</emphasis> -- frequency of vibrato in Hertz. Suggested range is 0 to 12 |
| 67 | </para> |
| 68 | |
| 69 | <para> |
| 70 | <emphasis>kvamp</emphasis> -- amplitude of the vibrato |
| 71 | </para> |
| 72 | </refsect1> |
| 73 | |
| 74 | <refsect1> |
| 75 | <title>Examples</title> |
| 76 | <para> |
| 77 | Here is an example of the wgbow opcode. It uses the file <ulink url="examples/wgbow.csd"><citetitle>wgbow.csd</citetitle></ulink>. |
| 78 | |
| 79 | <example> |
| 80 | <title>Example of the wgbow opcode.</title> |
| 81 | |
| 82 | |
| 83 | |
| 84 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 85 | <xi:include href="examples-xml/wgbow.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 86 | </example> |
| 87 | </para> |
| 88 | </refsect1> |
| 89 | |
| 90 | <refsect1> |
| 91 | <title>See also</title> |
| 92 | <para><link linkend="SiggenWavguide"><citetitle>Waveguide Physical Modeling</citetitle></link></para> |
| 93 | </refsect1> |
| 94 | |
| 95 | <refsect1> |
| 96 | <title>Credits</title> |
| 97 | <para> |
| 98 | <simplelist> |
| 99 | <member>Author: &namejohn; (after &nameperry;)</member> |
| 100 | <member>University of Bath, Codemist Ltd.</member> |
| 101 | <member>Bath, UK</member> |
| 102 | </simplelist> |
| 103 | </para> |
| 104 | |
| 105 | <para>New in Csound version 3.47</para> |
| 106 | <para>ifn optional in version 6.06</para> |
| 107 | </refsect1> |
| 108 | </refentry> |