Debian Codegraph @

opcodes/port.xml

raw symbols SCIP
1
2 <refentry id="port">
3 <indexterm id="IndexPort"><primary>port</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Standard Filters:Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>port</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>port</refname>
13 <refpurpose>
14 Applies portamento to a step-valued control signal.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Applies portamento to a step-valued control signal.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>kres <command>port</command> ksig, ihtim [, isig]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>ihtim</emphasis> -- half-time of the function, in seconds.
34 </para>
35
36 <para>
37 <emphasis>isig</emphasis>
38 (optional, default=0) -- initial (i.e. previous) value for
39 internal feedback. The default value is 0. Negative value will
40 cause initialization to be skipped and last value from previous instance to be used
41 as initial value for note.
42 </para>
43 </refsect1>
44
45 <refsect1>
46 <title>Performance</title>
47 <para>
48 <emphasis>kres</emphasis> -- the output signal at control-rate.
49 </para>
50
51 <para>
52 <emphasis>ksig</emphasis> -- the input signal at control-rate.
53 </para>
54
55 <para>
56 <emphasis>port</emphasis> applies portamento to a step-valued control signal. At each new step value, <emphasis>ksig</emphasis> is low-pass filtered to move towards that value at a rate determined by <emphasis>ihtim</emphasis>. <emphasis>ihtim</emphasis> is the <quote>half-time</quote> of the function (in seconds), during which the curve will traverse half the distance towards the new value, then half as much again, etc., theoretically never reaching its asymptote. With <link linkend="portk"><citetitle>portk</citetitle></link>, the half-time can be varied at the control rate.
57 </para>
58 </refsect1>
59
60 <refsect1>
61 <title>Examples</title>
62 <para>
63 Here is an example of the port opcode. It uses the file <ulink url="examples/port.csd"><citetitle>port.csd</citetitle></ulink>.
64 <example>
65 <title>Example of the port opcode.</title>
66 <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>
67 <xi:include href="examples-xml/port.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
68 </example>
69 </para>
70 </refsect1>
71
72 <refsect1>
73 <title>See also</title>
74 <para><link linkend="SigmodStandard"><citetitle>Standard Filters: Control signal filters</citetitle></link></para>
75 </refsect1>
76
77 </refentry>