| 1 | |
| 2 | <refentry id="ephasor"> |
| 3 | <indexterm id="IndexEphasor"><primary>ephasor</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Phasors</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>ephasor</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>ephasor</refname> |
| 11 | <refpurpose> |
| 12 | produces two outputs: a periodic phase signal and a periodic exponential decaying signal. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | This opcode produces two outputs: a periodic phase signal (like the phasor |
| 20 | opcode), and a periodic exponential decaying signal. The latter is |
| 21 | synchronised to the former, starting at 1 and then decreasing at |
| 22 | the same time as the phase signal increases from 0 to 1. The rate |
| 23 | of exponential decay can be controlled by the second parameter. |
| 24 | </para> |
| 25 | </refsect1> |
| 26 | |
| 27 | <refsect1> |
| 28 | <title>Syntax</title> |
| 29 | <synopsis>aexp,aph <command>ephasor</command> kfreq, kR</synopsis> |
| 30 | </refsect1> |
| 31 | |
| 32 | <refsect1> |
| 33 | <title>Performance</title> |
| 34 | <para> |
| 35 | <emphasis>kfreq</emphasis> - the rate at which the phase and |
| 36 | exponential signals are generated |
| 37 | </para> |
| 38 | <para> |
| 39 | <emphasis>kR</emphasis> - a parameter controlling the decay rate |
| 40 | of the exponential signal, 0 < kR < 1. Lower values |
| 41 | produce faster decays. |
| 42 | </para> |
| 43 | </refsect1> |
| 44 | <refsect1> |
| 45 | <title>Examples</title> |
| 46 | <para> |
| 47 | Here is an example of the ephasor opcode. It uses the file <ulink url="examples/ephasor.csd"><citetitle>ephasor.csd</citetitle></ulink>. |
| 48 | </para> |
| 49 | <example> |
| 50 | <title>Example of the ephasor opcode.</title> |
| 51 | |
| 52 | <para>See the sections <link |
| 53 | linkend="UsingRealTime"><citetitle>Real-time |
| 54 | Audio</citetitle></link> and <link linkend="CommandFlags"> |
| 55 | <citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 56 | <xi:include href="examples-xml/ephasor.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 57 | </example> |
| 58 | </refsect1> |
| 59 | |
| 60 | <refsect1> |
| 61 | <title>See also</title> |
| 62 | <para><link linkend="SiggenPhasors"><citetitle>Phasors</citetitle></link></para> |
| 63 | </refsect1> |
| 64 | |
| 65 | <refsect1> |
| 66 | <title>Credits</title> |
| 67 | <para> |
| 68 | <simplelist> |
| 69 | <member>Author: &namevictor;</member> |
| 70 | <member>2008</member> |
| 71 | </simplelist> |
| 72 | </para> |
| 73 | <para>New in version 5.10</para> |
| 74 | </refsect1> |
| 75 | </refentry> |