Debian Codegraph @

opcodes/schedulek.xml

raw symbols SCIP
1
2 <refentry id="schedulek">
3 <indexterm id="IndexSchedulek"><primary>schedulek</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Invocation</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>schedulek</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>schedulek</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>schedulek</command> knsnum, kwhen, kdur [, kp4] [, kp5] [...]</synopsis>
26 <synopsis><command>schedulek</command> &quot;insname&quot;, kwhen,
27 kdur [, kp4] [, kp5] [...]</synopsis>
28 <synopsis><command>schedule</command> kPar[]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Performance</title>
33 <para>
34 <emphasis>knsnum</emphasis> -- instrument number. Equivalent to p1 in a score <link linkend="i"><citetitle>i statement</citetitle></link>. <emphasis>knsnum</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>kwhen</emphasis> -- start time of the new event. Equivalent to p2 in a score <link linkend="i"><citetitle>i statement</citetitle></link>. <emphasis>kwhen</emphasis> must be nonnegative. If <emphasis>kwhen</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>kdur</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>kPar[]</emphasis> -- event parameters as a k-rate array. .
53 </para>
54
55 <para>
56 <emphasis>kp4, kp5, ...</emphasis> -- Equivalent to p4, p5,
57 etc., in a score <link linkend="i"><citetitle>i
58 statement</citetitle></link>. The opcode also
59 accepts strings as arguments for p4-pN.
60 </para>
61
62 <para>
63 <emphasis>schedulek</emphasis> adds a new score event. The
64 arguments, including options, are the same as in a score. The
65 <emphasis>kwhen</emphasis> time (p2) is measured from the time
66 of this event.
67 </para>
68
69 <para>
70 If the duration is zero or negative the new event is of MIDI
71 type, and inherits the release sub-event from the scheduling
72 instruction.
73 </para>
74 </refsect1>
75
76 <refsect1>
77 <title>Examples</title>
78 <para>
79 Here is an example of the schedulek opcode. It uses the file <ulink url="examples/schedulek.csd"><citetitle>schedulek.csd</citetitle></ulink>.
80 <example>
81 <title>Example of the schedule opcode.</title>
82 <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>
83 <xi:include href="examples-xml/schedulek.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
84 </example>
85 <para>
86 A musical example featuring the schedulek opcode: <ulink url="examples/musical/Schedulek_Heintz.csd"><citetitle>Schedulek_Heintz.csd</citetitle></ulink> by Joachim Heintz.
87 </para>
88 </para>
89 </refsect1>
90
91 <refsect1>
92 <title>See also</title>
93 <para><link linkend="ControlInvocat"><citetitle>Instrument Invocation</citetitle></link></para>
94 </refsect1>
95
96 <refsect1>
97 <title>Credits</title>
98 <para>
99 <simplelist>
100 <member>Author: &namejohn;</member>
101 <member>University of Bath/Codemist Ltd.</member>
102 <member>Bath, UK</member>
103 <member>January 2020</member>
104 </simplelist>
105 </para>
106 <!-- <para>Example written by &namekevin;.</para> -->
107
108 <!-- <para>New in Csound version 3.491</para> -->
109 <!-- <para>Based on work by &namegabriel;</para> -->
110 <!-- <para>Thanks goes to David Gladstein, for clarifying the <emphasis>iwhen</emphasis> parameter.</para> -->
111 </refsect1>
112 </refentry>