Debian Codegraph @

opcodes/sc_phasor.xml

raw symbols SCIP
1 <refentry id="sc_phasor">
2 <indexterm id="IndexSc_phasor"><primary>sc_phasor</primary></indexterm>
3 <refentryinfo><title>Signal Generators:Phasors</title></refentryinfo>
4 <refmeta>
5 <refentrytitle>sc_phasor</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>sc_phasor</refname>
10 <refpurpose>
11 A resettable linear ramp between two levels (renamed as trigphasor)
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>Plugin opcode in scugens.</para>
18 <para>
19 A resettable linear ramp between two levels. Port of Supercollider's Phasor.
20 DEPRECATED (renamed as <link
21 linkend="trigphasor"><citetitle>trigphasor</citetitle></link>, )
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>aindex <command>sc_phasor</command> xtrig, xrate, kstart, kend [, kresetPos] </synopsis>
28
29 <synopsis>kindex <command>sc_phasor</command> xtrig, xrate, kstart, kend [, kresetPos] </synopsis>
30
31 </refsect1>
32
33 <refsect1>
34 <title>Performance</title>
35 <para>
36 Phasor is a linear ramp between <emphasis>kstart</emphasis> and
37 <emphasis>kend</emphasis> values. When its
38 trigger input crosses from non-positive to positive, sc_phasor's
39 output will jump to its reset position (or to <emphasis>kstart</emphasis>if no
40 reset value was given). Upon reaching the end of its ramp,
41 sc_phasor will wrap back to its start.
42 </para>
43
44 <para>
45 If <emphasis>kresetPos</emphasis> is specified, this value will
46 be used to jump to after a trigger. Otherwise, a trigger will
47 set the position back to <emphasis>kstart</emphasis>
48 </para>
49
50 <para>
51 If one wants Phasor to output a signal with frequency
52 <emphasis>freq</emphasis> oscillating between
53 <emphasis>start</emphasis> and <emphasis>end</emphasis>, then
54 the <emphasis>rate</emphasis> should be:
55
56 <literallayout>(end - start) * freq / sr</literallayout>
57
58 </para>
59
60 </refsect1>
61
62 <refsect1>
63 <title>Examples</title>
64 <para>
65 Here is an example of the sc_phasor opcode. It uses the file <ulink url="examples/sc_phasor.csd"><citetitle>sc_phasor.csd</citetitle></ulink>.
66
67 <example>
68 <title>Example of the sc_phasor opcode.</title>
69
70 <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>
71 <xi:include href="examples-xml/sc_phasor.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
72 </example>
73 </para>
74 </refsect1>
75
76 <refsect1>
77 <title>See also</title>
78 <para>
79 <link linkend="phasor"><citetitle>phasor</citetitle></link>
80 </para>
81 </refsect1>
82
83 <refsect1>
84 <!-- And put your name and other relevant information here-->
85 <title>Credits</title>
86 <para>By: &nameeduardo; 2017</para>
87 </refsect1>
88
89 <!--Now remember to add a link from the appropriate category in the Opcode Overview.-->
90 <!--Add the entity to manual.xml-->
91 <!--Add the entity reference in the appropriate place in opcodes/top.xml-->
92 <!--And you're set! Maybe delete the comments as well...-->
93
94 </refentry>