Debian Codegraph @

opcodes/strtod.xml

raw symbols SCIP
1
2 <refentry id="strtod">
3 <indexterm id="Indexstrtod"><primary>strtod</primary></indexterm>
4 <refentryinfo><title>Strings:Conversion</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>strtod</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>strtod</refname>
13 <refpurpose>
14 Converts a string to a float (i-rate).
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20
21 <para> Convert a string to a floating point value. It is also possible to
22 pass an strset index or a string p-field from the score instead of a string
23 argument. If the string cannot be parsed as a floating point or integer number, an init or perf error occurs and the instrument is deactivated. </para>
24
25 </refsect1>
26
27 <refsect1>
28 <title>Syntax</title>
29 <synopsis>ir <command>strtod</command> Sstr</synopsis>
30
31 <synopsis>ir <command>strtod</command> indx</synopsis>
32 </refsect1>
33
34 <refsect1>
35 <title>Initialization</title>
36 <para>
37 <emphasis>Sstr</emphasis> -- String to convert.
38 </para>
39
40 <para>
41 <emphasis>indx</emphasis> -- index of string set by strset
42 </para>
43
44 </refsect1>
45
46 <refsect1>
47 <title>Performance</title>
48 <para>
49 <emphasis>ir</emphasis> -- Value of string as float.
50 </para>
51
52 </refsect1>
53
54 <!--<refsect1>
55 <title>Examples</title>
56 <para>
57 Here is an example of the strtod opcode. It uses the file <ulink url="examples/strtod.csd"><citetitle>strtod.csd</citetitle></ulink>.
58
59 <example>
60 <title>Example of the strtod opcode.</title>
61
62
63
64 <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>
65 <xi:include href="examples-xml/strtod.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
66 </example>
67 </para>
68 </refsect1>-->
69
70 <refsect1>
71 <title>See Also</title>
72 <para><link linkend="stringconvert"><citetitle></citetitle>String Conversion Opcodes</link></para>
73 </refsect1>
74
75 <refsect1>
76 <title>Credits</title>
77 <para>
78 <simplelist>
79 <member>Author: Istvan Varga</member>
80 <member>2005</member>
81 </simplelist>
82 </para>
83 </refsect1>
84 </refentry>