Debian Codegraph @

opcodes/chano.xml

raw symbols SCIP
1
2 <refentry id="chano">
3 <indexterm id="Indexchano"><primary>chano</primary></indexterm>
4 <refentryinfo><title>Signal I/O:Software Bus</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>chano</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>chano</refname>
11 <refpurpose>
12 Send data to the outwards software bus
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Send data to a channel of the outward software bus.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>chano</command> kval, kchan</synopsis>
26
27 <synopsis><command>chano</command> aval, kchan</synopsis>
28 </refsect1>
29
30 <!--<refsect1>
31 <title>Initialization</title>
32 <para>
33 </para>
34
35 </refsect1>-->
36
37 <refsect1>
38 <title>Performance</title>
39 <para>
40 <emphasis>xval</emphasis> --- value to transmit
41 </para>
42
43 <para>
44 <emphasis>kchan</emphasis> -- a positive integer that indicates
45 which channel of the software bus to write
46 </para>
47
48 <para>
49 Note that the inward and outward software busses are independent, and
50 are not mixer buses. Also the k-rate and a-rate busses are
51 independent. The last value remains until a new value is
52 written. There is no imposed limit to the number of busses but they
53 use memory so small numbers are to be preferred.
54 </para>
55
56 </refsect1>
57
58 <refsect1>
59 <title>Example</title>
60 <para>
61 The example shows the software bus being used as an output audio
62 channel. It assumes that an external program that has access to the API is
63 receiving the values.
64 </para>
65
66 <informalexample>
67 <programlisting>
68 <emphasis role="ohdr">sr</emphasis> <emphasis role="op">=</emphasis> 44100
69 <emphasis role="ohdr">kr</emphasis> <emphasis role="op">=</emphasis> 100
70 <emphasis role="ohdr">ksmps</emphasis> <emphasis role="op">=</emphasis> 1
71
72
73 <emphasis role="oblock">instr</emphasis> 1
74 a1 <emphasis role="opc">oscil</emphasis> p4, p5, 100
75 <emphasis role="opc">chano</emphasis> 1, a1
76 <emphasis role="oblock">endin</emphasis>
77 </programlisting>
78 </informalexample>
79
80 </refsect1>
81
82 <refsect1>
83 <title>See also</title>
84 <para><link linkend="SoftwareBus"><citetitle>Software Bus</citetitle></link></para>
85 </refsect1>
86
87 <refsect1>
88 <title>Credits</title>
89 <para>
90 <simplelist>
91 <member>Author: &namejohn;</member>
92 <member>2005</member>
93 </simplelist>
94 </para>
95 <para>New in Csound 5.00</para>
96 </refsect1>
97 </refentry>