| 1 | |
| 2 | <refentry id="vibrato"> |
| 3 | <indexterm id="IndexVibrato"><primary>vibrato</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Basic Oscillators</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>vibrato</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>vibrato</refname> |
| 13 | <refpurpose> |
| 14 | Generates a natural-sounding user-controllable vibrato. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Generates a natural-sounding user-controllable vibrato. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>kout <command>vibrato</command> kAverageAmp, kAverageFreq, kRandAmountAmp, kRandAmountFreq, kAmpMinRate, kAmpMaxRate, kcpsMinRate, kcpsMaxRate, ifn [, iphs</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | <para> |
| 33 | <emphasis>ifn</emphasis> -- Number of vibrato table. It normally contains a sine or a triangle wave. |
| 34 | </para> |
| 35 | |
| 36 | <para> |
| 37 | <emphasis>iphs</emphasis> -- (optional) Initial phase of table, expressed as a fraction of a cycle (0 to 1). A negative value will cause phase initialization to be skipped. The default value is 0. |
| 38 | </para> |
| 39 | </refsect1> |
| 40 | |
| 41 | <refsect1> |
| 42 | <title>Performance</title> |
| 43 | <para> |
| 44 | <emphasis>kAverageAmp</emphasis> -- Average amplitude value of vibrato |
| 45 | </para> |
| 46 | |
| 47 | <para> |
| 48 | <emphasis>kAverageFreq</emphasis> -- Average frequency value of vibrato (in cps) |
| 49 | </para> |
| 50 | |
| 51 | <para> |
| 52 | <emphasis>kRandAmountAmp</emphasis> -- Amount of random amplitude deviation |
| 53 | </para> |
| 54 | |
| 55 | <para> |
| 56 | <emphasis>kRandAmountFreq</emphasis> -- Amount of random frequency deviation |
| 57 | </para> |
| 58 | |
| 59 | <para> |
| 60 | <emphasis>kAmpMinRate</emphasis> -- Minimum frequency of random amplitude deviation segments (in cps) |
| 61 | </para> |
| 62 | |
| 63 | <para> |
| 64 | <emphasis>kAmpMaxRate</emphasis> -- Maximum frequency of random amplitude deviation segments (in cps) |
| 65 | </para> |
| 66 | |
| 67 | <para> |
| 68 | <emphasis>kcpsMinRate</emphasis> -- Minimum frequency of random frequency deviation segments (in cps) |
| 69 | </para> |
| 70 | |
| 71 | <para> |
| 72 | <emphasis>kcpsMaxRate</emphasis> -- Maximum frequency of random frequency deviation segments (in cps) |
| 73 | </para> |
| 74 | |
| 75 | <para> |
| 76 | <emphasis>vibrato</emphasis> outputs a natural-sounding user-controllable vibrato. The concept is to randomly vary both frequency and amplitude of the oscillator generating the vibrato, in order to simulate the irregularities of a real vibrato. |
| 77 | </para> |
| 78 | |
| 79 | <para> |
| 80 | In order to have a total control of these random variations, several input arguments are present. Random variations are obtained by two separated segmented lines, the first controlling amplitude deviations, the second the frequency deviations. Average duration of each segment of each line can be shortened or enlarged by the arguments <emphasis>kAmpMinRate</emphasis>, <emphasis>kAmpMaxRate</emphasis>, <emphasis>kcpsMinRate</emphasis>, <emphasis>kcpsMaxRate</emphasis>, and the deviation from the average amplitude and frequency values can be independently adjusted by means of <emphasis>kRandAmountAmp</emphasis> and <emphasis>kRandAmountFreq</emphasis>. |
| 81 | </para> |
| 82 | </refsect1> |
| 83 | |
| 84 | <refsect1> |
| 85 | <title>Examples</title> |
| 86 | <para> |
| 87 | Here is an example of the vibrato opcode. It uses the file <ulink url="examples/vibrato.csd"><citetitle>vibrato.csd</citetitle></ulink>. |
| 88 | <example> |
| 89 | <title>Example of the vibrato opcode.</title> |
| 90 | <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> |
| 91 | <xi:include href="examples-xml/vibrato.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 92 | </example> |
| 93 | </para> |
| 94 | </refsect1> |
| 95 | |
| 96 | <refsect1> |
| 97 | <title>See also</title> |
| 98 | <para><link linkend="SiggenBasic"><citetitle>Basic Oscillators</citetitle></link></para> |
| 99 | </refsect1> |
| 100 | |
| 101 | <refsect1> |
| 102 | <title>Credits</title> |
| 103 | <para>Author: &namegabriel;</para> |
| 104 | <para>New in Version 4.15</para> |
| 105 | </refsect1> |
| 106 | </refentry> |