blob: 5b456a47e1da9a86d86aff2034f9388285677b02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
<refentry id="mdelay">
<indexterm id="IndexMdelay"><primary>mdelay</primary></indexterm>
<refentryinfo><title>Signal I/O:Signal Output</title></refentryinfo>
<refmeta>
<refentrytitle>mdelay</refentrytitle>
</refmeta>
<refnamediv>
<refname>mdelay</refname>
<refpurpose>
A MIDI delay opcode.
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<para>
A MIDI delay opcode.
</para>
</refsect1>
<refsect1>
<title>Syntax</title>
<synopsis><command>mdelay</command> kstatus, kchan, kd1, kd2, kdelay</synopsis>
</refsect1>
<refsect1>
<title>Performance</title>
<para>
<emphasis>kstatus</emphasis> -- status byte of MIDI message to be delayed
</para>
<para>
<emphasis>kchan</emphasis> -- MIDI channel (1-16)
</para>
<para>
<emphasis>kd1</emphasis> -- first MIDI data byte
</para>
<para>
<emphasis>kd2</emphasis> -- second MIDI data byte
</para>
<para>
<emphasis>kdelay</emphasis> -- delay time in seconds
</para>
<para>
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.
</para>
</refsect1>
<refsect1>
<title>Examples</title>
<para>
Here is an example of the mdelay opcode. It uses the file <ulink url="examples/mdelay.csd"><citetitle>mdelay.csd</citetitle></ulink>.
<example>
<title>Example of the mdelay opcode.</title>
<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>
<xi:include href="examples-xml/mdelay.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
</example>
</para>
</refsect1>
<refsect1>
<title>Credits</title>
<para>
<simplelist>
<member>Author: &namegabriel;</member>
<member>Italy</member>
<member>November 1998</member>
</simplelist>
</para>
<para>New in Csound version 3.492</para>
</refsect1>
</refentry>
|