| 1 | <refentry id="gausstrig"> |
| 2 | <indexterm id="IndexGausstrig"><primary>gausstrig</primary></indexterm> |
| 3 | <refentryinfo><title>Signal Generators:Random (Noise) Generators</title></refentryinfo> |
| 4 | <refmeta> |
| 5 | <refentrytitle>gausstrig</refentrytitle> |
| 6 | </refmeta> |
| 7 | |
| 8 | <refnamediv> |
| 9 | <refname>gausstrig</refname> |
| 10 | <refpurpose> |
| 11 | Random impulses around a certain frequency. |
| 12 | </refpurpose> |
| 13 | </refnamediv> |
| 14 | |
| 15 | <refsect1> |
| 16 | <title>Description</title> |
| 17 | <para> |
| 18 | Generates random impulses around a certain frequency. |
| 19 | </para> |
| 20 | </refsect1> |
| 21 | |
| 22 | <refsect1> |
| 23 | <title>Syntax</title> |
| 24 | <synopsis>ares <command>gausstrig</command> kamp, kcps, kdev [, imode] [, ifrst1]</synopsis> |
| 25 | <synopsis>kres <command>gausstrig</command> kamp, kcps, kdev [, imode] [, ifrst1]</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Initialization</title> |
| 30 | <para> |
| 31 | <emphasis>imode</emphasis> (optional, default=0) -- imode > 0 |
| 32 | means better frequency modulation. If the frequency changes, the |
| 33 | delay before the next impulse is calculed again. With the |
| 34 | default mode we have the classic behavior of the GaussTrig ugen |
| 35 | in SuperCollider, where the frequency modulation is bypassed |
| 36 | during the delay time that precedes the next impulse. |
| 37 | </para> |
| 38 | |
| 39 | <para> |
| 40 | <emphasis>ifrst1</emphasis> (optional, default=0) -- ifrst1 > 0 |
| 41 | changes the original behavior of the GuassTrig ugen. By default, it |
| 42 | always generates an impulse in the very beginning. Otherwise, the first |
| 43 | impulse appearance is random and depends on <emphasis>kcps</emphasis> and |
| 44 | <emphasis>kdev</emphasis> parameters.</para> |
| 45 | </refsect1> |
| 46 | |
| 47 | <refsect1> |
| 48 | <title>Performance</title> |
| 49 | <para> |
| 50 | <emphasis>kamp</emphasis> -- amplitude. |
| 51 | </para> |
| 52 | |
| 53 | <para> |
| 54 | <emphasis>kcps</emphasis> -- the mean frequency over which random impulses are distributed. |
| 55 | </para> |
| 56 | |
| 57 | <para> |
| 58 | <emphasis>kdev</emphasis> -- random deviation from mean (0 <= dev < 1). |
| 59 | </para> |
| 60 | </refsect1> |
| 61 | |
| 62 | <refsect1> |
| 63 | <title>Examples</title> |
| 64 | <para> |
| 65 | Here is an example of the gausstrig opcode. It uses the file <ulink url="examples/gausstrig.csd"><citetitle>gausstrig.csd</citetitle></ulink>. |
| 66 | |
| 67 | <example> |
| 68 | <title>Example of the gausstrig opcode.</title> |
| 69 | |
| 70 | <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> |
| 71 | <xi:include href="examples-xml/gausstrig.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 72 | </example> |
| 73 | </para> |
| 74 | |
| 75 | <para> |
| 76 | Here is an example of the gausstrig opcode with imode = 1. It uses the file <ulink url="examples/gausstrig-2.csd"><citetitle>gausstrig-2.csd</citetitle></ulink>. |
| 77 | |
| 78 | <example> |
| 79 | <title>Example of the gausstrig opcode with imode = 1.</title> |
| 80 | |
| 81 | <xi:include href="examples-xml/gausstrig-2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 82 | </example> |
| 83 | </para> |
| 84 | </refsect1> |
| 85 | |
| 86 | <refsect1> |
| 87 | <title>See also</title> |
| 88 | <para><link linkend="SiggenNoise"><citetitle>Random (Noise) Generators</citetitle></link></para> |
| 89 | </refsect1> |
| 90 | |
| 91 | <refsect1> |
| 92 | <title>Credits</title> |
| 93 | <para> |
| 94 | <simplelist> |
| 95 | <member>Based on Bhob Rainey's GaussTrig ugen (SuperCollider)</member> |
| 96 | <member>Author: &nametito;</member> |
| 97 | <member>January 2012</member> |
| 98 | <member>Modification: Gleb Rogozinsky</member> |
| 99 | <member>March 2015</member> |
| 100 | </simplelist> |
| 101 | </para> |
| 102 | <para>New in Csound version 5.16</para> |
| 103 | </refsect1> |
| 104 | </refentry> |