Debian Codegraph @

opcodes/maxalloc.xml

raw symbols SCIP
1
2 <refentry id="maxalloc">
3 <indexterm id="IndexMaxalloc"><primary>maxalloc</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Realtime Performance Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>maxalloc</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>maxalloc</refname>
11 <refpurpose>
12 Limits the number of allocations of an instrument.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Limits the number of allocations of an instrument.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>maxalloc</command> insnum, icount</synopsis>
26 <synopsis><command>maxalloc</command> Sinsname, icount</synopsis>
27 </refsect1>
28
29 <refsect1>
30 <title>Initialization</title>
31 <para>
32 <emphasis>insnum</emphasis> -- instrument number
33 </para>
34 <para>
35 <emphasis>Sinsname</emphasis> -- instrument name
36 </para>
37
38 <para>
39 <emphasis>icount</emphasis> -- number of instrument allocations
40 </para>
41 </refsect1>
42
43 <refsect1>
44 <title>Performance</title>
45 <para>
46 <emphasis>maxalloc</emphasis> limits the number of simultaneous instances (notes) of an instrument. Any score events after the maximum has been reached, are ignored.
47 </para>
48 <para>
49 All instances of <emphasis>maxalloc</emphasis> must be defined in the header section, not in the instrument body.
50 </para>
51 </refsect1>
52
53 <refsect1>
54 <title>Examples</title>
55 <para>
56 Here is an example of the maxalloc opcode. It uses the file <ulink url="examples/maxalloc.csd"><citetitle>maxalloc.csd</citetitle></ulink>.
57
58 <example>
59 <title>Example of the maxalloc opcode.</title>
60
61
62
63 <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>
64 <xi:include href="examples-xml/maxalloc.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
65 </example>
66
67 Its output should contain messages like these:
68 <screen>
69 WARNING: cannot allocate last note because it exceeds instr maxalloc
70 </screen>
71 </para>
72 </refsect1>
73
74 <refsect1>
75 <title>See also</title>
76 <para><link linkend="ControlRealtime"><citetitle>Real-time Performance Control</citetitle></link></para>
77 </refsect1>
78
79 <refsect1>
80 <title>Credits</title>
81 <para>
82 <simplelist>
83 <member>Author: &namegabriel;</member>
84 <member>Italy</member>
85 <member>July 1999</member>
86 </simplelist>
87 </para>
88
89 <para>New in Csound version 3.57</para>
90 </refsect1>
91 </refentry>