Debian Codegraph @

opcodes/schedkwhennamed.xml

raw symbols SCIP
1
2 <refentry id="schedkwhennamed">
3 <indexterm id="IndexSchedkwhennamed"><primary>schedkwhennamed</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Invocation</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>schedkwhennamed</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>schedkwhennamed</refname>
11 <refpurpose>
12 Similar to schedkwhen but uses a named instrument at init-time.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Similar to <link linkend="schedkwhen"><citetitle>schedkwhen</citetitle></link> but uses a named instrument at init-time.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25
26 <synopsis><command>schedkwhennamed</command> ktrigger, kmintim, kmaxnum, &quot;name&quot;, kwhen, kdur \
27 [, ip4] [, ip5] [...]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>ip4, ip5, ...</emphasis> -- Equivalent to p4, p5, etc., in a score <link linkend="i"><citetitle>i statement</citetitle></link>
34 </para>
35 </refsect1>
36
37 <refsect1>
38 <title>Performance</title>
39 <para>
40 <emphasis>ktrigger</emphasis> -- triggers a new score event. If <emphasis>ktrigger</emphasis> is 0, no new event is triggered.
41 </para>
42
43 <para>
44 <emphasis>kmintim</emphasis> -- minimum time between generated events, in seconds. If <emphasis>kmintim</emphasis> is less than or equal to 0, no time limit exists.
45 </para>
46
47 <para>
48 <emphasis>kmaxnum</emphasis> -- maximum number of simultaneous instances of named instrument allowed. If the number of existant instances of the named instrument is greater than or equal to <emphasis>kmaxnum</emphasis>, no new event is generated. If <emphasis>kmaxnum</emphasis> is less than or equal to 0, it is not used to limit event generation.
49 </para>
50
51 <para>
52 <emphasis>&quot;name&quot;</emphasis> -- the named instrument's name.
53 </para>
54
55 <para>
56 <emphasis>kwhen</emphasis> -- start time of the new event. Equivalent to p2 in a score <link linkend="i"><citetitle>i statement</citetitle></link>. Measured from the time of the triggering event. <emphasis>kwhen</emphasis> must be greater than or equal to 0. If <emphasis>kwhen</emphasis> greater than 0, the instrument will not be initialized until the actual time when it should start performing.
57 </para>
58
59 <para>
60 <emphasis>kdur</emphasis> -- duration of event. Equivalent to p3 in a score <link linkend="i"><citetitle>i statement</citetitle></link>. If <emphasis>kdur</emphasis> is 0, the instrument will only do an initialization pass, with no performance. If <emphasis>kdur</emphasis> is negative, a held note is initiated. (See <link linkend="ihold"><citetitle>ihold</citetitle></link> and <link linkend="i"><citetitle>i statement</citetitle></link>.)
61 </para>
62
63 <note>
64 <para> While waiting for events to be triggered by <emphasis>schedkwhennamed</emphasis>, the performance must be kept going, or Csound may quit if no score events are expected. To guarantee continued performance, an <link linkend="f"><citetitle>f0 statement</citetitle></link> may be used in the score.</para>
65 </note>
66 <note>
67 <para> Note that the <emphasis>schedkwhennamed</emphasis> opcode cannot accept string p-fields. If you need to pass strings when instantiating an instrument, use the <link linkend="scoreline"><citetitle>scoreline</citetitle></link> or <link linkend="scoreline_i"><citetitle>scoreline_i</citetitle></link> opcode.</para>
68 </note>
69 </refsect1>
70
71 <refsect1>
72 <title>Examples</title>
73 <para>
74 Here is an example of the schedkwhennamed opcode. It uses the file <ulink url="examples/schedkwhennamed.csd"><citetitle>schedkwhennamed.csd</citetitle></ulink>.
75
76 <example>
77 <title>Example of the schedkwhennamed opcode.</title>
78 <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>
79 <xi:include href="examples-xml/schedkwhennamed.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
80 </example>
81 </para>
82 </refsect1>
83
84 <refsect1>
85 <title>See also</title>
86 <para><link linkend="ControlInvocat"><citetitle>Instrument Invocation</citetitle></link></para>
87 </refsect1>
88
89 <refsect1>
90 <title>Credits</title>
91 <para>
92 <simplelist>
93 <member>Author: &namerasmus;</member>
94 <member>EMS, Stockholm, Sweden</member>
95 </simplelist>
96 </para>
97
98 <para>New in Csound version 4.23</para>
99 </refsect1>
100 </refentry>