Debian Codegraph @

opcodes/mpulse.xml

raw symbols SCIP
1
2 <refentry id="mpulse">
3 <indexterm id="IndexMpulse"><primary>mpulse</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Dynamic Spectrum Oscillators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>mpulse</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>mpulse</refname>
11 <refpurpose>
12 Generates a set of impulses.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Generates a set of impulses of amplitude <emphasis>kamp</emphasis> separated by <emphasis>kintvl</emphasis> seconds (or samples if <emphasis>kintvl</emphasis> is negative). The first impulse is generated after a delay of <emphasis>ioffset</emphasis> seconds.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>ares <command>mpulse</command> kamp, kintvl [, ioffset]</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>ioffset</emphasis> (optional, default=0) -- the delay before the first impulse. If it is negative, the value is taken as the number of samples, otherwise it is in seconds. Default is zero.
32 </para>
33 </refsect1>
34
35 <refsect1>
36 <title>Performance</title>
37 <para>
38 <emphasis>kamp</emphasis> -- amplitude of the impulses generated
39 </para>
40
41 <para>
42 <emphasis>kintvl</emphasis> -- Interval of time in seconds (or samples if <emphasis>kintvl</emphasis> is negative) to the next pulse.
43 </para>
44
45 <para>
46 After the initial delay, an impulse of <emphasis>kamp</emphasis> amplitude is generated as a single sample. Immediately after generating the impulse, the time of the next one is determined from the value of <emphasis>kintvl</emphasis> at that precise moment. This means that any changes in <emphasis>kintvl</emphasis> between impulses are discarded. If <emphasis>kintvl</emphasis> is zero, there is an infinite wait to the next impulse. If <emphasis>kintvl</emphasis> is negative, the interval is counted in number of samples rather than seconds.
47
48 </para>
49 <para>
50 </para>
51 </refsect1>
52
53 <refsect1>
54 <title>Examples</title>
55 <para>
56 Here is an example of the mpulse opcode. It uses the file <ulink url="examples/mpulse.csd"><citetitle>mpulse.csd</citetitle></ulink>.
57
58 <example>
59 <title>Example of the mpulse opcode.</title>
60 <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>
61 <xi:include href="examples-xml/mpulse.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
62 </example>
63 </para>
64 <para>
65 Another example of how to use mpulse can be found here: <link linkend="mode"><citetitle>mode</citetitle></link>
66 </para>
67 </refsect1>
68
69
70 <refsect1>
71 <title>See Also</title>
72 <para>
73 <link linkend="SiggenDynamic"><citetitle>Dynamic Spectrum Oscillators</citetitle></link>
74 </para>
75 </refsect1>
76
77 <refsect1>
78 <title>Credits</title>
79 <para>Written by &namejohn;.</para>
80 <para>New in version 4.08</para>
81 </refsect1>
82 </refentry>