Debian Codegraph @

scoregens/genquadbezier.xml

raw symbols SCIP
1
2 <refentry id="GENquadbezier">
3 <indexterm id="IndexGENquadbezier"><primary>GENquadbezier</primary></indexterm>
4 <refmeta>
5 <refentrytitle>GENquadbezier</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>"quadbezier"</refname>
10 <refpurpose>
11 Generate a table with values from a quadratic Bézier function.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>Plugin gen in quadbezier.</para>
18 <para>
19 This subroutine creates an ftable from segments constructed by
20 paths traced by the quadratic Bézier function.
21 </para>
22 </refsect1>
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>f</command> # time size "quadbezier" y1 cx1 cy1 x2 y2 [cx2 cy2 x3 y3 ...]
26 </synopsis>
27 </refsect1>
28
29 <refsect1>
30 <title>Initialization</title>
31 <para>
32 <emphasis>x2, x3,</emphasis> etc. -- Locations in table at which to attain the following y value. Must be in increasing order. It is assumed that x1 equals 0. If the last value is less than size, then the rest will be set to zero. Should not be negative.
33 </para>
34 <para>
35 <emphasis>y1, y2, y3,</emphasis> etc. -- Breakpoint values attained at the location specified by the preceding x value.
36 </para>
37 <para>
38 <emphasis>cx1, cx2, cx3,</emphasis> etc. -- Virtual x coordinates for the different control points. cx[n] can be equal to but not less than x[n] and equal to but not greater than x[n+1]. Should not be negative but can be zero.
39 </para>
40 <para>
41 <emphasis>cy1, cy2, cy3,</emphasis> etc. -- Virtual y coordinates for the different control points.
42 </para>
43 </refsect1>
44
45 <refsect1>
46 <title>Examples</title>
47 <para>
48 Here is a simple example of the GENquadbezier routine. It uses the file <ulink url="examples/genquadbezier.csd"><citetitle>genquadbezier.csd</citetitle></ulink>.
49 <example>
50 <title>Example of the GENquadbezierroutine.</title>
51 <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>
52 <xi:include href="examples-xml/genquadbezier.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
53 </example>
54 <textobject>
55 <phrase>These are the diagrams of the envelopes drawn by the
56 GENquadbezier routine, as used in the example
57 above:</phrase>
58 </textobject>
59
60 <mediaobject>
61 <imageobject>
62 <imagedata fileref="images/genquadbezier_1.png" format="PNG"/>
63 </imageobject>
64
65 <textobject>
66 <phrase> f 2 0 1024 "quadbezier" 0 140 0.61 324 0.53 338 0.27 449 0.32 571 0.08 675 0.5 873 0.47 1024 0</phrase>
67 </textobject>
68
69
70 <caption>
71 <para> f 2 0 1024 "quadbezier" 0 140 0.61 324 0.53 338 0.27 449 0.32 571 0.08 675 0.5 873 0.47 1024 0</para>
72 </caption>
73 </mediaobject>
74
75 <mediaobject>
76 <imageobject>
77 <imagedata fileref="images/genquadbezier_2.png" format="PNG"/>
78 </imageobject>
79
80 <textobject>
81 <phrase> f 3 0 1024 "quadbezier" 0 92 0.04 94 0.25 177 0.58 373 0.39 537 0.15 675 0.5 910 0.68 1024 0</phrase>
82 </textobject>
83
84 <caption>
85 <para> f 3 0 1024 "quadbezier" 0 92 0.04 94 0.25 177 0.58 373 0.39 537 0.15 675 0.5 910 0.68 1024 0</para>
86 </caption>
87 </mediaobject>
88
89 <mediaobject>
90 <imageobject>
91 <imagedata fileref="images/genquadbezier_3.png" format="PNG"/>
92 </imageobject>
93
94 <textobject>
95 <phrase> f 4 0 1024 "quadbezier" 0 196 0.68 537 0.71 873 0.7 1024 0</phrase>
96 </textobject>
97
98 <caption>
99 <para> f 4 0 1024 "quadbezier" 0 196 0.68 537 0.71 873 0.7 1024 0</para>
100 </caption>
101 </mediaobject>
102 </para>
103 </refsect1>
104
105 <refsect1>
106 <title>See also</title>
107 <para> For references, check the comments in the <ulink url="https://github.com/csound/csound/blob/develop/Opcodes/quadbezier.c"><citetitle>source code</citetitle></ulink>.</para>
108 </refsect1>
109
110 <refsect1>
111 <title>Credits</title>
112 <para>Written by Guillermo Senna</para>
113 <para>2016</para>
114 </refsect1>
115 </refentry>