Debian Codegraph @

opcodes/mdelay.xml

raw symbols SCIP
1
2 <refentry id="mdelay">
3 <indexterm id="IndexMdelay"><primary>mdelay</primary></indexterm>
4 <refentryinfo><title>Signal I/O:Signal Output</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>mdelay</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>mdelay</refname>
13
14 <refpurpose>
15 A MIDI delay opcode.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 A MIDI delay opcode.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>mdelay</command> kstatus, kchan, kd1, kd2, kdelay</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Performance</title>
33 <para>
34 <emphasis>kstatus</emphasis> -- status byte of MIDI message to be delayed
35 </para>
36
37 <para>
38 <emphasis>kchan</emphasis> -- MIDI channel (1-16)
39 </para>
40
41 <para>
42 <emphasis>kd1</emphasis> -- first MIDI data byte
43 </para>
44
45 <para>
46 <emphasis>kd2</emphasis> -- second MIDI data byte
47 </para>
48
49 <para>
50 <emphasis>kdelay</emphasis> -- delay time in seconds
51 </para>
52
53 <para>
54 Each time that <emphasis>kstatus</emphasis> is other than zero, <emphasis>mdelay</emphasis> outputs a MIDI message to the MIDI out port after <emphasis>kdelay</emphasis> seconds. This opcode is useful in implementing MIDI delays. Several instances of <emphasis>mdelay</emphasis> can be present in the same instrument with different argument values, so complex and colorful MIDI echoes can be implemented. Further, the delay time can be changed at k-rate.
55 </para>
56 </refsect1>
57 <refsect1>
58 <title>Examples</title>
59 <para>
60 Here is an example of the mdelay opcode. It uses the file <ulink url="examples/mdelay.csd"><citetitle>mdelay.csd</citetitle></ulink>.
61
62 <example>
63 <title>Example of the mdelay opcode.</title>
64 <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>
65 <xi:include href="examples-xml/mdelay.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
66 </example>
67 </para>
68 </refsect1>
69
70 <refsect1>
71 <title>See also</title>
72 <para><link linkend="MidiOutput"><citetitle>MIDI Message Output</citetitle></link></para>
73 </refsect1>
74
75 <refsect1>
76 <title>Credits</title>
77 <para>
78 <simplelist>
79 <member>Author: &namegabriel;</member>
80 <member>Italy</member>
81 <member>November 1998</member>
82 </simplelist>
83 </para>
84
85 <para>New in Csound version 3.492</para>
86 </refsect1>
87 </refentry>