Debian Codegraph @

opcodes/vaset.xml

raw symbols SCIP
1 <refentry id="vaset">
2 <indexterm id="IndexAvarSet"><primary>vaset</primary></indexterm>
3 <refentryinfo><title>Signal Modifiers:Sample Level Operators</title></refentryinfo>
4 <refmeta>
5 <refentrytitle>vaset</refentrytitle>
6 </refmeta>
7
8
9
10 <refnamediv>
11 <refname>vaset</refname>
12 <refpurpose>
13 Write value of into the current buffer of an a-rate variable by index.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 Write values into the current buffer of an a-rate variable at the given
21 index. Useful for doing sample-by-sample manipulation at k-rate without
22 using setksmps 1.
23
24 <note>
25 <title>Note</title>
26 <para>Because this opcode does not do any bounds checking, the user
27 must be careful not to try to write values past ksmps (the
28 size of a buffer for an a-rate variable) by using index values greater
29 than ksmps.</para>
30 </note>
31 <note>
32 <title>Note</title>
33 <para>In Csound6 this opcode does do bounds checking.</para>
34 </note>
35 </para>
36 </refsect1>
37
38 <refsect1>
39 <title>Syntax</title>
40 <synopsis><command>vaset</command> kval, kndx, avar</synopsis>
41 </refsect1>
42
43
44 <refsect1>
45 <title>Performance</title>
46 <para>
47 <emphasis>kval</emphasis> - value to write into avar
48 </para>
49 <para>
50 <emphasis>kndx</emphasis> - index of the sample to write to the current
51 buffer of the given avar variable
52 </para>
53 <para>
54 <emphasis>avar</emphasis> - a-rate variable to write to
55 </para>
56 </refsect1>
57
58 <refsect1>
59 <title>Examples</title>
60 <para>
61 Here is an example of the vaset opcode. It uses the file <ulink url="examples/vaset.csd"><citetitle>vaset.csd</citetitle></ulink>.
62
63 <example>
64 <title>Example of the vaset opcode.</title>
65
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/vaset.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="SigmodSample"><citetitle>Sample Level Operators</citetitle></link></para>
75 </refsect1>
76
77 <refsect1>
78 <title>Credits</title>
79 <para>
80 <simplelist>
81 <member>Author: Steven Yi</member>
82 </simplelist>
83 </para>
84
85 <para>New in version 5.04</para>
86 <para>September 2006.</para>
87 </refsect1>
88 </refentry>