Debian Codegraph @

opcodes/schedule.xml

raw symbols SCIP
1
2 <refentry id="schedule">
3 <indexterm id="IndexSchedule"><primary>schedule</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Invocation</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>schedule</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>schedule</refname>
11 <refpurpose>
12 Adds a new score event.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Adds a new score event.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>schedule</command> insnum, iwhen, idur [, ip4] [, ip5] [...]</synopsis>
26 <synopsis><command>schedule</command> &quot;insname&quot;, iwhen,
27 idur [, ip4] [, ip5] [...]</synopsis>
28 <synopsis><command>schedule</command> iPar[]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>insnum</emphasis> -- instrument number. Equivalent to p1 in a score <link linkend="i"><citetitle>i statement</citetitle></link>. <emphasis>insnum</emphasis> must be a number greater than the number of the calling instrument.
35 </para>
36
37 <para>
38 <emphasis><quote>insname</quote></emphasis> -- A string (in double-quotes) representing a named instrument.
39 </para>
40
41 <para>
42 <emphasis>iwhen</emphasis> -- start time of the new event. Equivalent to p2 in a score <link linkend="i"><citetitle>i statement</citetitle></link>. <emphasis>iwhen</emphasis> must be nonnegative. If <emphasis>iwhen</emphasis> is zero, <emphasis>insum</emphasis> must be greater than or equal to the p1 of the current instrument.
43 </para>
44
45 <para>
46 <emphasis>idur</emphasis> -- duration of event. Equivalent to p3
47 in a score <link linkend="i"><citetitle>i
48 statement</citetitle></link>. .
49 </para>
50
51 <para>
52 <emphasis>iPar[]</emphasis> -- event parameters as an i-time array. .
53 </para>
54
55
56 <para>
57 <emphasis>ip4, ip5, ...</emphasis> -- Equivalent to p4, p5,
58 etc., in a score <link linkend="i"><citetitle>i
59 statement</citetitle></link>. The opcode also
60 accepts strings as arguments for p4-pN.
61 </para>
62 </refsect1>
63
64 <refsect1>
65 <title>Performance</title>
66 <para>
67 <emphasis>schedule</emphasis> adds a new score event. The arguments, including options, are the same as in a score. The <emphasis>iwhen</emphasis> time (p2) is measured from the time of this event.
68 </para>
69
70 <para>
71 If the duration is zero or negative the new event is of MIDI type, and inherits the release sub-event from the scheduling instruction.
72 </para>
73 </refsect1>
74
75 <refsect1>
76 <title>Examples</title>
77 <para>
78 Here is an example of the schedule opcode. It uses the file <ulink url="examples/schedule.csd"><citetitle>schedule.csd</citetitle></ulink>.
79 <example>
80 <title>Example of the schedule opcode.</title>
81 <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>
82 <xi:include href="examples-xml/schedule.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
83 </example>
84 </para>
85 </refsect1>
86
87 <refsect1>
88 <title>See also</title>
89 <para><link linkend="ControlInvocat"><citetitle>Instrument Invocation</citetitle></link></para>
90 <para> More information on this opcode: <ulink url="http://www.csoundjournal.com/issue15/phrase_loops.html"><citetitle>http://www.csoundjournal.com/issue15/phrase_loops.html</citetitle></ulink> , written by Jim Aikin </para>
91 </refsect1>
92
93 <refsect1>
94 <title>Credits</title>
95 <para>
96 <simplelist>
97 <member>Author: &namejohn;</member>
98 <member>University of Bath/Codemist Ltd.</member>
99 <member>Bath, UK</member>
100 <member>November 1998</member>
101 </simplelist>
102 </para>
103 <para>Example written by &namekevin;.</para>
104
105 <para>New in Csound version 3.491</para>
106 <para>Based on work by &namegabriel;</para>
107 <para>Thanks goes to David Gladstein, for clarifying the <emphasis>iwhen</emphasis> parameter.</para>
108 </refsect1>
109 </refentry>