Debian Codegraph @

opcodes/scale.xml

raw symbols SCIP
1
2 <refentry id="scale">
3 <indexterm id="IndexScale"><primary>scale</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Linear and Exponential Generators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>scale</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>scale</refname>
11 <refpurpose>
12 Arbitrary signal scaling.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Scales incoming value to user-definable range. Similar to scale object found in popular dataflow languages.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>kscl <command>scale</command> kinput, kmax, kmin[, kimax, kimin]</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Performance</title>
30 <para>
31 <emphasis>kin</emphasis> -- Input value. Can originate from any
32 k-rate source as long as that source's output is in range
33 <emphasis>kimin</emphasis> to <emphasis>kimax</emphasis>.
34 </para>
35 <para>
36 <emphasis>kmin</emphasis> -- Minimum value of the resultant scale operation.
37 </para>
38 <para>
39 <emphasis>kmax</emphasis> -- Maximum value of the resultant scale operation.
40 </para>
41 <para>
42 <emphasis>kimin</emphasis> -- Optional; Minimum of the incoming
43 value range, defaulting to zero.
44 </para>
45 <para>
46 <emphasis>kimax</emphasis> -- Optional; Maximum of the incoming
47 value range, defaulting to one.
48 </para>
49 <para><warning> Take care with the order of the arguments which has maximum
50 before minimum</warning></para>
51 </refsect1>
52
53 <refsect1>
54 <title>Examples</title>
55 <para>
56 Here is an example of the scale opcode. It uses the file <ulink url="examples/scale.csd"><citetitle>scale.csd</citetitle></ulink>.
57 <example>
58 <title>Example of the scale opcode.</title>
59 <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>
60 <xi:include href="examples-xml/scale.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
61 </example>
62 </para>
63 </refsect1>
64
65 <refsect1>
66 <title>See also</title>
67 <para><link linkend="SiggenLineexp"><citetitle>Linear and Exponential Generators</citetitle></link></para>
68 </refsect1>
69
70 <refsect1>
71 <title>Credits</title>
72 <para>
73 <simplelist>
74 <member>Author: David Akbari</member>
75 <member>October</member>
76 <member>2006</member>
77 <member>&namejohn;</member>
78 <member>Modified to add input range values in 2020</member>
79 </simplelist>
80 </para>
81 </refsect1>
82 </refentry>