Debian Codegraph @

opcodes/metro2.xml

raw symbols SCIP
1
2 <refentry id="metro2">
3 <indexterm id="IndexMetro2"><primary>metro2</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Sensing and Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>metro2</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>metro2</refname>
11 <refpurpose>
12 Trigger Metronome with Swing and Accents
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Generates a metronomic signal with controllable swinging.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>ktrig <command>metro2</command> kfreq, kswing [, iamp, initphase]</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>iamp</emphasis> - off-beat click amplitude
32 </para>
33 <para>
34 <emphasis>initphase</emphasis> - initial phase value (in the 0 to 1 range)
35 </para>
36 </refsect1>
37
38 <refsect1>
39 <title>Performance</title>
40 <para>
41 <emphasis>ktrig</emphasis> - output trigger signal
42 </para>
43 <para>
44 <emphasis>kfreq</emphasis> - frequency of trigger bangs in cps
45 </para>
46 <para>
47 <emphasis>kswing</emphasis> - value (in the 0 to 1 range)
48 </para>
49
50 <para>
51 <emphasis>metro2</emphasis> is a modification of 'classic'
52 <emphasis>metro</emphasis> opcode with additional swinging. The
53 swinging clicks can be modulated at k-rate. Also, swinging clicks
54 can have their own amplitude value set by iamp.
55 </para>
56
57 <note>
58 <para>
59 <emphasis>metro2</emphasis> as well as
60 <emphasis>metro</emphasis> will produce a trigger signal of 1
61 when its phase is exactly 0 or 1. If you want to skip the
62 initial trigger, use a very small value like 0.00000001.
63 </para>
64 </note>
65 </refsect1>
66
67 <refsect1>
68 <title>Examples</title>
69 <para>
70 Here is an example of the metro2 opcode. It uses the file <ulink url="examples/metro2.csd"><citetitle>metro2.csd</citetitle></ulink>
71 <example>
72 <title>Example of the metro2 opcode.</title>
73 <xi:include href="examples-xml/metro2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
74 </example>
75 </para>
76 </refsect1>
77
78 <refsect1>
79 <title>See also</title>
80 <para><link linkend="ControlSensing"><citetitle>Sensing and Control: Tempo and Sequencing</citetitle></link></para>
81 </refsect1>
82
83 <refsect1>
84 <title>Credits</title>
85 <para>
86 <simplelist>
87 <member>Author: Gleb Rogozinsky;</member>
88 <member>St.Petersburg, October 2019</member>
89 </simplelist>
90 </para>
91
92 <para>New in Csound version 6.14</para>
93 </refsect1>
94 </refentry>