| 1 | |
| 2 | <refentry id="partikkelsync"> |
| 3 | <indexterm id="IndexPartikkelsync"><primary>partikkelsync</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Granular Synthesis</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>partikkelsync</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>partikkelsync</refname> |
| 13 | <refpurpose> Outputs <emphasis>partikkel</emphasis>'s grain |
| 14 | scheduler clock pulse and phase to synchronize several instances of the <emphasis>partikkel</emphasis> |
| 15 | opcode to the same clock source. |
| 16 | </refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | <refsect1> |
| 20 | <title>Description</title> |
| 21 | <para> |
| 22 | <emphasis>partikkelsync</emphasis> is an opcode for outputting <link linkend="partikkel"><citetitle>partikkel</citetitle></link>'s grain scheduler clock pulse and phase. <emphasis>partikkelsync</emphasis>'s output can be used to synchronize other instances of the <link linkend="partikkel"><citetitle>partikkel</citetitle></link> opcode to the same clock. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis>async [,aphase] <command>partikkelsync</command> iopcode_id</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialization</title> |
| 33 | <para> |
| 34 | <emphasis>iopcode_id</emphasis> -- the opcode id, linking an |
| 35 | instance of <link linkend="partikkel"><citetitle>partikkel</citetitle></link> to an instance of <emphasis>partikkelsync</emphasis>. |
| 36 | </para> |
| 37 | </refsect1> |
| 38 | |
| 39 | <refsect1> |
| 40 | <title>Performance</title> |
| 41 | <para> |
| 42 | <emphasis>async</emphasis> -- trigger pulse signal. |
| 43 | Outputs trigger pulses synchronized to a <emphasis>partikkel</emphasis> opcode's grain scheduler clock. |
| 44 | One trigger pulse is generated for each grain started in the <emphasis>partikkel</emphasis> opcode with the same <emphasis>opcode_id</emphasis>. |
| 45 | The normal usage would be to send this signal to another <emphasis>partikkel</emphasis> opcode's <emphasis>async</emphasis> input to |
| 46 | synchronize several instances of <emphasis>partikkel</emphasis>. |
| 47 | </para> |
| 48 | <para> |
| 49 | <emphasis>aphase</emphasis> -- clock phase. |
| 50 | Outputs a linear ramping phase signal. Can be used e.g. for softsynchronization, or just as a phase generator ala <emphasis>phasor</emphasis>. |
| 51 | </para> |
| 52 | |
| 53 | </refsect1> |
| 54 | |
| 55 | <refsect1> |
| 56 | <title>Example</title> |
| 57 | <para> |
| 58 | Here is an example of the partikkelsync opcodes. It uses the file <ulink url="examples/partikkelsync.csd"><citetitle>partikkelsync.csd</citetitle></ulink>. |
| 59 | <example> |
| 60 | <title>Example with soft sync of two partikkel generators.</title> |
| 61 | <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> |
| 62 | <xi:include href="examples-xml/partikkelsync.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 63 | </example> |
| 64 | </para> |
| 65 | </refsect1> |
| 66 | |
| 67 | <refsect1> |
| 68 | <title>See Also</title> |
| 69 | <para> |
| 70 | <link linkend="SiggenGranular"><citetitle>Granular Synthesis</citetitle></link> |
| 71 | </para> |
| 72 | </refsect1> |
| 73 | |
| 74 | <refsect1> |
| 75 | <title>Credits</title> |
| 76 | <para> |
| 77 | <simplelist> |
| 78 | <member>Author: Thom Johansen</member> |
| 79 | <member>Author: Torgeir Strand Henriksen</member> |
| 80 | <member>Author: &nameoeyvind;</member> |
| 81 | <member>April 2007</member> |
| 82 | </simplelist> |
| 83 | <para>New in version 5.06</para> |
| 84 | </para> |
| 85 | </refsect1> |
| 86 | </refentry> |
| 87 |