| 1 | |
| 2 | <refentry id="partikkelget"> |
| 3 | <indexterm id="IndexPartikkelget"><primary>partikkelget</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Granular Synthesis</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>partikkelget</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>partikkelget</refname> |
| 13 | <refpurpose> Get mask index for a specific mask parameter of a running <emphasis>partikkel</emphasis> instance. |
| 14 | </refpurpose> |
| 15 | </refnamediv> |
| 16 | |
| 17 | <refsect1> |
| 18 | <title>Description</title> |
| 19 | <para> |
| 20 | <emphasis>partikkelget</emphasis> is an opcode for outputting <link linkend="partikkel"><citetitle>partikkel</citetitle></link> mask index for a specific parameter. |
| 21 | Used together with <emphasis>partikkelset</emphasis>, it can be used to synchronize partikkel masking between several running instances of the <emphasis> partikkel</emphasis> opcode. |
| 22 | It can also be used to control other processes based on the internal mask index, for example to create more complex masking patterns than is available with the regular grain masking system. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis>kindex <command>partikkelget</command> kparameterindex, 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>kmaskindex</emphasis> -- mask index output. |
| 43 | Outputs the current mask index for the parameter specified with <emphasis>kparameterindex</emphasis> in the partikkel instance identified with <emphasis>iopcode_id</emphasis>. |
| 44 | </para> |
| 45 | <para> |
| 46 | <emphasis>kparameterindex</emphasis> -- mask parameter. |
| 47 | Selection of the masking parameter for which to output the current mask index. The different parameters are identified as: |
| 48 | <itemizedlist> |
| 49 | <listitem><para>0: gain mask</para></listitem> |
| 50 | <listitem><para>1: pitch sweep start mask</para></listitem> |
| 51 | <listitem><para>2: pitch sweep end mask</para></listitem> |
| 52 | <listitem><para>3: fm modulation index mask</para></listitem> |
| 53 | <listitem><para>4: channel mask</para></listitem> |
| 54 | <listitem><para>5: waveform mix mask</para></listitem> |
| 55 | </itemizedlist> |
| 56 | </para> |
| 57 | |
| 58 | </refsect1> |
| 59 | |
| 60 | <refsect1> |
| 61 | <title>Example</title> |
| 62 | <para> |
| 63 | Here is an example of the partikkelget and partikkelset opcodes. It uses the file <ulink url="examples/partikkelgetset.csd"><citetitle>partikkelgetset.csd</citetitle></ulink>. |
| 64 | <example> |
| 65 | <title>Example of manipulating the internal mask index of partikkel, based on the value of other mask indices in the same partikkel instance.</title> |
| 66 | <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> |
| 67 | <xi:include href="examples-xml/partikkelgetset.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 68 | </example> |
| 69 | </para> |
| 70 | </refsect1> |
| 71 | |
| 72 | <refsect1> |
| 73 | <title>See Also</title> |
| 74 | <para><link linkend="partikkel"><citetitle>partikkel</citetitle></link> |
| 75 | </para> |
| 76 | </refsect1> |
| 77 | <refsect1> |
| 78 | <title>Credits</title> |
| 79 | <para> |
| 80 | <simplelist> |
| 81 | <member>Author: Thom Johansen</member> |
| 82 | <member>Author: &nameoeyvind;</member> |
| 83 | <member>May 2017</member> |
| 84 | </simplelist> |
| 85 | <para>New in version 6.09</para> |
| 86 | </para> |
| 87 | </refsect1> |
| 88 | </refentry> |
| 89 |