Debian Codegraph @

opcodes/trighold.xml

raw symbols SCIP
1 <!--Change refentry id and indexterm id-->
2 <refentry id="trighold">
3 <indexterm id="Indextrighold"><primary>trighold</primary></indexterm>
4 <!--Make sure the category below is a valid one! See categories.py-->
5 <refentryinfo><title>Signal Modifiers:Standard Filters:Control</title></refentryinfo>
6 <refmeta>
7 <refentrytitle>trighold</refentrytitle>
8 </refmeta>
9
10 <refnamediv>
11 <refname>trighold</refname>
12 <refpurpose>
13 Timed trigger, holds a value for a given time
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>Plugin opcode in scugens.</para>
20 <para>
21 Timed trigger. Port of Supercollider's Trig ugen. When a nonpositive to positive
22 transition occurs at the input, trighold outputs the level of the triggering input for the
23 specified duration, otherwise it outputs zero.
24 </para>
25 </refsect1>
26
27 <refsect1>
28 <title>Syntax</title>
29 <!-- Please keep this below ~70 characters by using backslashes to avoid overflow in the pdf
30 version-->
31 <synopsis>aout <command>trighold</command> ain, kdur</synopsis>
32
33 <synopsis>kout <command>trighold</command> kin, kdur</synopsis>
34
35 </refsect1>
36
37 <refsect1>
38 <title>Initialization</title>
39 <para>
40 <emphasis>initialvalue</emphasis> If given, sets the internal
41 state. Default=0
42 </para>
43 </refsect1>
44
45 <refsect1>
46 <title>Performance</title>
47 <!-- First list all input and output performance parameters-->
48 <para>
49 <emphasis>ain</emphasis> -- Trigger. Trigger can be any
50 signal. A trigger happens when the signal changes from
51 non-positive to positive.
52 </para>
53 <para>
54 <emphasis>kdur</emphasis> -- Duration of the trigger in seconds.
55 </para>
56
57 <para>
58
59 </para>
60 </refsect1>
61 <refsect1>
62 <!--To add examples, create the csd file in the examples directory, then run:-->
63 <!--python csd2docbook.py -f newopcodename.csd-->
64 <!--to generate the xml highlighted version used below-->
65 <title>Examples</title>
66 <para>
67 Here is an example of the trighold opcode. It uses the file <ulink
68 url="examples/trighold.csd"><citetitle>trighold.csd</citetitle></ulink>.
69 <example>
70 <title>Example of the trighold opcode.</title>
71 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time
72 Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line
73 Flags</citetitle></link> for more information on using command line flags.</para>
74 <xi:include href="examples-xml/trighold.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
75 </example>
76 </para>
77 </refsect1>
78
79 <refsect1>
80 <title>See also</title>
81 <para><link linkend="ControlSensing"><citetitle>Sensing and Control: Tempo and Sequencing</citetitle></link></para>
82 </refsect1>
83
84 <refsect1>
85 <!-- And put your name and other relevant information here-->
86 <title>Credits</title>
87 <para>By: &nameeduardo; 2017</para>
88 </refsect1>
89
90 <!--Now remember to add a link from the appropriate category in the Opcode Overview.-->
91 <!--Add the entity to manual.xml-->
92 <!--Add the entity reference in the appropriate place in opcodes/top.xml-->
93 <!--And you're set! Maybe delete the comments as well...-->
94
95 </refentry>