| 1 |
|
| 2 |
<refentry id="vibes"> |
| 3 |
<indexterm id="IndexVibes"><primary>vibes</primary></indexterm> |
| 4 |
<refentryinfo><title>Signal Generators:Models and Emulations</title></refentryinfo> |
| 5 |
<refmeta> |
| 6 |
<refentrytitle>vibes</refentrytitle> |
| 7 |
</refmeta> |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
<refnamediv> |
| 12 |
<refname>vibes</refname> |
| 13 |
<refpurpose> |
| 14 |
Physical model related to the striking of a metal block. |
| 15 |
</refpurpose> |
| 16 |
</refnamediv> |
| 17 |
|
| 18 |
<refsect1> |
| 19 |
<title>Description</title> |
| 20 |
<para> |
| 21 |
Audio output is a tone related to the striking of a metal block as found in a vibraphone. The method is 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>vibes</command> kamp, kfreq, ihrd, ipos, imp, kvibf, kvamp, ivibfn, idec</synopsis> |
| 28 |
</refsect1> |
| 29 |
|
| 30 |
<refsect1> |
| 31 |
<title>Initialization</title> |
| 32 |
<para> |
| 33 |
<emphasis>ihrd</emphasis> -- the hardness of the stick used in the strike. A range of 0 to 1 is used. 0.5 is a suitable value. |
| 34 |
</para> |
| 35 |
|
| 36 |
<para> |
| 37 |
<emphasis>ipos</emphasis> -- where the block is hit, in the range 0 to 1. |
| 38 |
</para> |
| 39 |
|
| 40 |
<para> |
| 41 |
<emphasis>imp</emphasis> -- a table of the strike impulses. The file <ulink url="examples/marmstk1.wav"><citetitle>marmstk1.wav</citetitle></ulink> is a suitable function from measurements and can be loaded with a <link linkend="GEN01"><citetitle>GEN01</citetitle></link> table. It is also available at <ulink |
| 42 |
url="ftp://ftp.cs.bath.ac.uk/pub/dream/documentation/sounds/modelling/"><citetitle>ftp://ftp.cs.bath.ac.uk/pub/dream/documentation/sounds/modelling/</citetitle></ulink>. |
| 43 |
</para> |
| 44 |
|
| 45 |
<para> |
| 46 |
<emphasis>ivfn</emphasis> -- shape of tremolo, usually a sine table, created by a function |
| 47 |
</para> |
| 48 |
|
| 49 |
<para> |
| 50 |
<emphasis>idec</emphasis> -- time before end of note when damping is introduced |
| 51 |
</para> |
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
</refsect1> |
| 62 |
|
| 63 |
<refsect1> |
| 64 |
<title>Performance</title> |
| 65 |
<para> |
| 66 |
<emphasis>kamp</emphasis> -- Amplitude of note. |
| 67 |
</para> |
| 68 |
|
| 69 |
<para> |
| 70 |
<emphasis>kfreq</emphasis> -- Frequency of note played. |
| 71 |
</para> |
| 72 |
|
| 73 |
<para> |
| 74 |
<emphasis>kvibf</emphasis> -- frequency of tremolo in Hertz. Suggested range is 0 to 12 |
| 75 |
</para> |
| 76 |
|
| 77 |
<para> |
| 78 |
<emphasis>kvamp</emphasis> -- amplitude of the tremolo |
| 79 |
</para> |
| 80 |
</refsect1> |
| 81 |
|
| 82 |
<refsect1> |
| 83 |
<title>Examples</title> |
| 84 |
<para> |
| 85 |
Here is an example of the vibes opcode. It uses the file <ulink url="examples/vibes.csd"><citetitle>vibes.csd</citetitle></ulink>, and <ulink url="examples/marmstk1.wav"><citetitle>marmstk1.wav</citetitle></ulink>. |
| 86 |
|
| 87 |
<example> |
| 88 |
<title>Example of the vibes opcode.</title> |
| 89 |
<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> |
| 90 |
<xi:include href="examples-xml/vibes.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 91 |
</example> |
| 92 |
</para> |
| 93 |
<para> |
| 94 |
A musical example featuring the vibes opcode: <ulink url="examples/musical/Vibes_Pena.csd"><citetitle>Vibes_Pena.csd</citetitle></ulink>, by luis Antunes Pena. |
| 95 |
</para> |
| 96 |
</refsect1> |
| 97 |
|
| 98 |
<refsect1> |
| 99 |
<title>See Also</title> |
| 100 |
<para> |
| 101 |
<link linkend="SiggenModels"><citetitle>Models and Emulations</citetitle></link> |
| 102 |
</para> |
| 103 |
</refsect1> |
| 104 |
|
| 105 |
<refsect1> |
| 106 |
<title>Credits</title> |
| 107 |
<para> |
| 108 |
<simplelist> |
| 109 |
<member>Author: &namejohn; (after &nameperry;)</member> |
| 110 |
<member>University of Bath, Codemist Ltd.</member> |
| 111 |
<member>Bath, UK</member> |
| 112 |
</simplelist> |
| 113 |
</para> |
| 114 |
|
| 115 |
<para>New in Csound version 3.47</para> |
| 116 |
</refsect1> |
| 117 |
</refentry> |