Debian Codegraph @

opcodes/sfpassign.xml

raw symbols SCIP
1
2 <refentry id="sfpassign">
3 <indexterm id="IndexSfpassign"><primary>sfpassign</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Sample Playback</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>sfpassign</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>sfpassign</refname>
13 <refpurpose>
14 Assigns all presets of a SoundFont2 (SF2) sample file to a sequence of progressive index numbers.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Assigns all presets of a previously loaded SoundFont2 (SF2)
22 sample file to a sequence of progressive index numbers. These
23 opcodes allow management the sample-structure of SF2 files. In
24 order to understand the usage of these opcodes, the user must
25 have some knowledge of the SF2 format, so a brief description of
26 this format can be found in
27 the <link linkend="SiggenSample"><citetitle>SoundFont2 File Format</citetitle></link> section.
28 </para>
29
30 <para>
31 <emphasis>sfpassign</emphasis> should be placed in the header section of a Csound orchestra.
32 </para>
33 </refsect1>
34
35 <refsect1>
36 <title>Syntax</title>
37 <synopsis><command>sfpassign</command> istartindex, ifilhandle[, imsgs]</synopsis>
38 </refsect1>
39
40 <refsect1>
41 <title>Initialization</title>
42 <para>
43 <emphasis>istartindex</emphasis> -- starting index preset by the user in bulk preset assignments.
44 </para>
45
46 <para>
47 <emphasis>ifilhandle</emphasis> -- unique number generated by <emphasis>sfload</emphasis> opcode to be used as an identifier for a SF2 file. Several SF2 files can be loaded and activated at the same time.
48 </para>
49
50 <para>
51 <emphasis>imsgs</emphasis> -- if non-zero messages are suppressed.
52 </para>
53 </refsect1>
54
55 <refsect1>
56 <title>Performance</title>
57 <para>
58 <emphasis>sfpassign</emphasis> assigns all presets of a previously loaded SF2 file to a sequence of progressive index numbers, to be used later with the opcodes <link linkend="sfplay"><citetitle>sfplay</citetitle></link> and <link linkend="sfplaym"><citetitle>sfplaym</citetitle></link>. <emphasis>istartindex</emphasis> specifies the starting index number. Any number of <emphasis>sfpassign</emphasis> instances can be placed in the header section of an orchestra, each one assigning presets belonging to different SF2 files.
59 </para>
60
61 <para>
62 These opcodes only support the sample structure of SF2 files. The modulator structure of the SoundFont2 format is not supported in Csound. Any modulation or processing to the sample data is left to the Csound user, bypassing all restrictions forced by the SF2 standard.
63 </para>
64 </refsect1>
65
66 <refsect1>
67 <title>Examples</title>
68 <para>
69 Here is an example of the sfpassign opcode. It uses the file <ulink url="examples/sfpassign.csd"><citetitle>sfpassign.csd</citetitle></ulink>.
70 <example>
71 <title>Example of the sfpassign opcode.</title>
72 <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>
73 <xi:include href="examples-xml/sfpassign.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
74 </example>
75 </para>
76 </refsect1>
77
78 <refsect1>
79 <title>See also</title>
80 <para><link linkend="SiggenSample"><citetitle>Soundfonts</citetitle></link></para>
81 <para> More information on soundfonts is in the Floss Manuals: <ulink url="https://flossmanual.csound.com/midi/reading-midi-files"><citetitle>https://flossmanual.csound.com/midi/reading-midi-files</citetitle></ulink></para>
82 <para> For other information on soundfonts look in the Wikipedia: <ulink url="http://en.wikipedia.org/wiki/Soundfont"><citetitle>http://en.wikipedia.org/wiki/Soundfont</citetitle></ulink></para>
83 </refsect1>
84
85 <refsect1>
86 <title>Credits</title>
87 <para>
88 <simplelist>
89 <member>Author: &namegabriel;</member>
90 <member>Italy</member>
91 <member>May 2000</member>
92 </simplelist>
93 </para>
94
95 <para>New in Csound Version 4.07</para>
96 </refsect1>
97 </refentry>