Debian Codegraph @

opcodes/shiftin.xml

raw symbols SCIP
1 <refentry id="shiftin">
2 <indexterm id="IndexShiftin"><primary>shiftin</primary></indexterm>
3
4 <refentryinfo><title>Array Opcodes</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>shiftin</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>shiftin</refname>
11 <refpurpose>
12 Shifts the contents of an audio variable into a 1-dimensional array.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 This opcode can be used to push data from an audio variable into a 1-dimensional array. The array needs to be at least ksmps numbers long, but can be longer. Data is shifted in circularly, with the writing position moving by ksmps positions every k-cycle. When the array gets full, the writing position wraps around to the beginning of the array again (overwriting old positions). Together with the shiftout opcode, it can form a FIFO queue.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>kout[] <command>shiftin</command> asig</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Performance</title>
30 <para>
31 <emphasis>kout[]</emphasis> -- output array, needs to be at least ksmps numbers long.
32 </para>
33 <para>
34 <emphasis>asig</emphasis> -- input audio
35 </para>
36 </refsect1>
37
38 <refsect1>
39 <title>Examples</title>
40 <para>
41 Here is an example of the shiftin opcode. It uses the file <ulink
42 url="examples/shiftin.csd"><citetitle>shiftin.csd</citetitle></ulink>.</para>
43
44 <example>
45 <title>Example of the shiftin opcode.</title>
46
47 <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>
48 <xi:include href="examples-xml/shiftin.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
49 </example>
50 </refsect1>
51
52 <refsect1>
53 <title>See Also</title>
54 <para>
55 <link linkend="vectorial"><citetitle></citetitle>Vectorial opcodes</link>,
56 <link linkend="arrayOpcodes"><citetitle></citetitle>array opcodes</link>
57 </para>
58 </refsect1>
59
60 <refsect1>
61 <title>Credits</title>
62 <para>
63 <simplelist>
64 <member>Author: &namevictor;</member>
65 <member>NUI Maynooth</member>
66 <member>2014</member>
67 </simplelist>
68 </para>
69 <para>New in version 6.04</para>
70 </refsect1>
71 </refentry>