| 1 | |
| 2 | <refentry id="strfromurl"> |
| 3 | <indexterm id="Indexstrfromurl"><primary>strfromurl</primary></indexterm> |
| 4 | <refentryinfo><title>Strings:Definition</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>strfromurl</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>strfromurl</refname> |
| 11 | <refpurpose> |
| 12 | Set string variable to value read from an URL |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | <emphasis>strfromurl</emphasis> sets a string variable at |
| 20 | initialization time to the value found from reading an URL. |
| 21 | </para> |
| 22 | </refsect1> |
| 23 | |
| 24 | <refsect1> |
| 25 | <title>Syntax</title> |
| 26 | <synopsis>Sdst <command>strfromurl</command> StringURL</synopsis> |
| 27 | </refsect1> |
| 28 | |
| 29 | <refsect1> |
| 30 | <title>Initialization</title> |
| 31 | <para> |
| 32 | <emphasis>StringURL</emphasis> -- string naming an URL. |
| 33 | </para> |
| 34 | |
| 35 | <para> |
| 36 | <emphasis>Sdst</emphasis> -- destination string variable |
| 37 | </para> |
| 38 | </refsect1> |
| 39 | |
| 40 | <refsect1> |
| 41 | <title>Examples</title> |
| 42 | <para> |
| 43 | Here is an example of the strfromurl opcode. It uses the file <ulink url="examples/strfromurl.csd"><citetitle>strfromurl.csd</citetitle></ulink>. |
| 44 | <example> |
| 45 | <title>Example of the strfromurl opcode.</title> |
| 46 | <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> |
| 47 | <xi:include href="examples-xml/strfromurl.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 48 | </example> |
| 49 | </para> |
| 50 | </refsect1> |
| 51 | v |
| 52 | <refsect1> |
| 53 | <title>See Also</title> |
| 54 | <para><link linkend="stringmanipulate"><citetitle></citetitle>String Manipulation Opcodes</link></para> |
| 55 | </refsect1> |
| 56 | |
| 57 | <refsect1> |
| 58 | <title>Credits</title> |
| 59 | <para>Author: &namejohn;</para> |
| 60 | <para>2013</para> |
| 61 | <para>URLs available from Csound 6.02 if built with support</para> |
| 62 | </refsect1> |
| 63 | </refentry> |