| 1 | |
| 2 | <refentry id="partikkelset"> |
| 3 | <indexterm id="IndexPartikkelset"><primary>partikkelset</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Granular Synthesis</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>partikkelset</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>partikkelset</refname> |
| 13 | <refpurpose> Set 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>partikkelset</emphasis> is an opcode for setting the <link linkend="partikkel"><citetitle>partikkel</citetitle></link> mask index for a specific parameter. |
| 21 | Used together with <emphasis>partikkelget</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 set the internal mask index basaed on other processes, 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><command>partikkelset</command> kparameterindex, kmaskindex, 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>kparameterindex</emphasis> -- mask parameter. |
| 43 | Selection of the masking parameter for which to set the current mask index. The different parameters are identified as: |
| 44 | <itemizedlist> |
| 45 | <listitem><para>0: gain mask</para></listitem> |
| 46 | <listitem><para>1: pitch sweep start mask</para></listitem> |
| 47 | <listitem><para>2: pitch sweep end mask</para></listitem> |
| 48 | <listitem><para>3: fm modulation index mask</para></listitem> |
| 49 | <listitem><para>4: channel mask</para></listitem> |
| 50 | <listitem><para>5: waveform mix mask</para></listitem> |
| 51 | </itemizedlist> |
| 52 | </para> |
| 53 | <para> |
| 54 | <emphasis>kmaskindex</emphasis> -- value to set mask index to. |
| 55 | Sets the current mask index for the parameter specified with <emphasis>kparameterindex</emphasis> in the partikkel instance identified with <emphasis>iopcode_id</emphasis>. |
| 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 |