Debian Codegraph @

opcodes/A4.xml

raw symbols SCIP
1
2 <refentry id="A4">
3 <indexterm id="IndexA4"><primary>A4</primary></indexterm>
4 <refentryinfo><title>Orchestra Syntax:Header</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>A4</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>A4</refname>
13
14 <refpurpose>
15 Sets the base frequency for pitch A4.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 These statements are global value <link
23 linkend="assign"><citetitle>assignments</citetitle></link>, made
24 at the beginning of an orchestra, before any instrument block is
25 defined. Their function is to set certain <link
26 linkend="VariableTypes"><citetitle>reserved symbol
27 variables</citetitle></link> that are required for
28 performance. Once set, these reserved symbols can be used in
29 expressions anywhere in the orchestra.
30 </para>
31 </refsect1>
32
33 <refsect1>
34 <title>Syntax</title>
35 <synopsis><command>A4</command> = iarg</synopsis>
36 </refsect1>
37
38 <refsect1>
39 <title>Initialization</title>
40 <para>
41 <emphasis>A4</emphasis> = (optional) -- set reference frequency
42 for pitch A4 to <emphasis>iarg</emphasis> Hertz. The default value is 440.
43 </para>
44
45 <para>
46 In addition, any <link linkend="GlobalVariables"><citetitle>global variable</citetitle></link> can be initialized by an <emphasis>init-time assignment</emphasis> anywhere before the first <link linkend="instr"><citetitle>instr statement</citetitle></link>. All of the above assignments are run as instrument 0 (i-pass only) at the start of real performance.
47 </para>
48
49 <para>
50 Beginning with Csound version 6.08, <emphasis>A4</emphasis> may
51 be used. It affects the behaviour of the opcodes
52 <emphasis>cpspch</emphasis>, <emphasis>cpsoct</emphasis>,
53 <emphasis>cps2pch</emphasis>, <emphasis>cpsxpch</emphasis> and
54 <emphasis>cpsmidinn</emphasis>.
55 </para>
56 </refsect1>
57
58 <refsect1>
59 <title>Examples</title>
60 <para>
61 Here is an example of the A4 opcode. It uses the file <ulink url="examples/A4.csd"><citetitle>A4.csd</citetitle></ulink>.
62
63 <example>
64 <title>Example of the A4 opcode.</title>
65 <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>
66 <xi:include href="examples-xml/A4.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
67 </example>
68 </para>
69 </refsect1>
70
71 <refsect1>
72 <title>See also</title>
73 <para><link linkend="OrchHeader"><citetitle>Orchestra Header Statements</citetitle></link></para>
74 </refsect1>
75
76 <refsect1>
77 <title>Credits</title>
78 <para>
79 <simplelist>
80 <member>Authors: &namejohn;</member>
81 <member>September 2016</member>
82 </simplelist>
83 </para>
84
85 <para>New in Csound Version 6.08</para>
86
87 </refsect1>
88 </refentry>
89