Debian Codegraph @

opcodes/cps2pch.xml

raw symbols SCIP
1
2 <refentry id="cps2pch">
3 <indexterm id="IndexCps2pch"><primary>cps2pch</primary></indexterm>
4 <refentryinfo><title>Pitch Converters:Tuning Opcodes</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>cps2pch</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>cps2pch</refname>
13
14 <refpurpose>
15 Converts a pitch-class value into cycles-per-second (Hz) for equal divisions of the octave.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Converts a pitch-class value into cycles-per-second (Hz) for equal divisions of the octave.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis>icps <command>cps2pch</command> ipch, iequal</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>ipch</emphasis> -- Input number of the form 8ve.pc, indicating an 'octave' and which note in the octave.
35 </para>
36
37 <para>
38 <emphasis>iequal</emphasis> -- If positive, the number of equal intervals into which the 'octave' is divided. Must be less than or equal to 100. If negative, is the number of a table of frequency multipliers.
39 </para>
40
41 <note>
42 <title>Note</title>
43 <para>
44 <orderedlist>
45 <listitem>
46 <para>The following are essentially the same
47 <programlisting>
48 ia <emphasis role="op">=</emphasis> <emphasis role="opc">cpspch</emphasis>(8.02)
49 ib <emphasis role="opc">cps2pch</emphasis> 8.02, 12
50 ic <emphasis role="opc">cpsxpch</emphasis> 8.02, 12, 2, 1.02197503906</programlisting>
51 </para>
52 </listitem>
53
54 <listitem>
55 <para>
56 These are opcodes not functions
57 </para>
58 </listitem>
59
60 <listitem>
61 <para>
62 Negative values of <emphasis>ipch</emphasis> are allowed.
63 </para>
64 </listitem>
65 </orderedlist>
66 </para>
67 </note>
68 </refsect1>
69
70 <refsect1>
71 <title>Examples</title>
72 <para>
73 Here is an example of the cps2pch opcode. It uses the file <ulink url="examples/cps2pch.csd"><citetitle>cps2pch.csd</citetitle></ulink>.
74
75 <example>
76 <title>Example of the cps2pch opcode.</title>
77
78 <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>
79 <xi:include href="examples-xml/cps2pch.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
80 </example>
81
82 Its output should include lines like this:
83 <screen>instr 1: icps = 293.666</screen>
84 </para>
85
86 <para>
87 Here is an example of the cps2pch opcode using a table of frequency multipliers. It uses the file <ulink url="examples/cps2pch_ftable.csd"><citetitle>cps2pch_ftable.csd</citetitle></ulink>.
88
89 <example>
90 <title>Example of the cps2pch opcode using a table of frequency multipliers.</title>
91
92 <xi:include href="examples-xml/cps2pch_ftable.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
93 </example>
94
95 Its output should include lines like this:
96 <screen>instr 1: icps = 313.951</screen>
97 </para>
98
99 <para>
100 Here is an example of the cps2pch opcode using a 19ET scale. It uses the file <ulink url="examples/cps2pch_19et.csd"><citetitle>cps2pch_19et.csd</citetitle></ulink>.
101
102 <example>
103 <title>Example of the cps2pch opcode using a 19ET scale.</title>
104
105 <xi:include href="examples-xml/cps2pch_19et.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
106 </example>
107
108 Its output should include lines like this:
109 <screen>instr 1: icps = 281.429</screen>
110 </para>
111 </refsect1>
112
113 <refsect1>
114 <title>See also</title>
115 <para><link linkend="PitchTuning"><citetitle>Pitch Converters: Tuning Opcodes</citetitle></link></para>
116 </refsect1>
117
118 <refsect1>
119 <title>Credits</title>
120 <para>
121 <simplelist>
122 <member>Author: &namejohn;</member>
123 <member>University of Bath/Codemist Ltd.</member>
124 <member>Bath, UK</member>
125 <member>1997</member>
126 </simplelist>
127 </para>
128
129 <para>New in Csound version 3.492</para>
130 </refsect1>
131 </refentry>