Debian Codegraph @

opcodes/readscore.xml

raw symbols SCIP
1
2 <refentry id="readscore">
3 <indexterm id="Indexreadscore"><primary>readscore</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Invocation</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>readscore</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>readscore</refname>
11 <refpurpose>
12 Read, preprocess and schedule a score from an input string.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Readscore will issue one or more score events.
20 It can handle strings in the same conditions as
21 the standard score, including preprocessing (carry, sort, ramp, etc).
22 Multi-line strings are accepted, using {{ }} to enclose the string.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>readscore</command> Sin </synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis><quote>Sin</quote></emphasis> -- a string (in double-quotes or enclosed by {{ }}) containing one or more score events.
35 </para>
36 </refsect1>
37
38
39 <refsect1>
40 <title>Examples</title>
41 <para>
42 Here is an example of the readscore opcode. It uses the file <ulink url="examples/readscore.csd"><citetitle>readscore.csd</citetitle></ulink>.
43 <example>
44 <title>Example of the readscore opcode.</title>
45 <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>
46 <xi:include href="examples-xml/readscore.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
47 <para>
48 You can use string opcodes like <link linkend="sprintfk"><citetitle>sprintfk</citetitle></link> to produce strings to be passed to <emphasis>readscore</emphasis> like this:
49 <programlisting>
50 Sfil <emphasis role="op">=</emphasis> "/Volumes/Bla/file.aif"
51 String <emphasis role="opc">sprintfk</emphasis> {{i 2 0 %f "%s" %f %f %f %f}}, idur, Sfil, p5, p6, knorm, iskip
52 <emphasis role="opc">readscore</emphasis> String
53 </programlisting>
54 </para>
55 </example>
56 </para>
57
58 </refsect1>
59
60 <refsect1>
61 <title>See also</title>
62 <para><link linkend="ControlInvocat"><citetitle>Instrument Invocation</citetitle></link></para>
63 </refsect1>
64
65 <refsect1>
66 <title>Credits</title>
67 <para>Author: &namevictor;, 2013 </para>
68 </refsect1>
69 </refentry>