Debian Codegraph @

opcodes/fluidLoad.xml

raw symbols SCIP
1
2 <refentry id="fluidLoad">
3 <indexterm id="IndexFluidLoad"><primary>fluidLoad</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Sample Playback</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>fluidLoad</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>fluidLoad</refname>
11 <refpurpose>
12 Loads a SoundFont into a fluidEngine, optionally listing SoundFont contents.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Syntax</title>
18 <synopsis>isfnum <command>fluidLoad</command> soundfont, ienginenum[, ilistpresets]</synopsis>
19 </refsect1>
20
21 <refsect1>
22 <title>Description</title>
23 <para>
24 Plugin opcode in fluidOpcodes. This opcode is part of the plugin repository and has to be installed separately.
25 The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para>
26 <para>Loads a SoundFont into an instance of a fluidEngine, optionally
27 listing banks and presets for SoundFont.
28 </para>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33
34 <para><emphasis>isfnum </emphasis> -- number assigned to just-loaded
35 soundfont.</para>
36 <para><emphasis>soundfont </emphasis> -- string specifying a SoundFont
37 filename. Note that any number of SoundFonts may be loaded (obviously,
38 by different invocations of fluidLoad).</para>
39 <para><emphasis>ienginenum </emphasis> -- engine number assigned from
40 fluidEngine</para>
41 <para><emphasis>ilistpresets </emphasis> -- optional, if specified, lists all
42 Fluidsynth programs for the just-loaded SoundFont. A Fluidsynth program is a
43 combination of SoundFont ID, bank number, and preset number that is assigned to
44 a MIDI channel.
45 </para>
46 </refsect1>
47
48 <refsect1>
49 <title>Performance</title>
50 <para>Invoke fluidLoad in the orchestra header, any number of
51 times. The same SoundFont may be invoked to assign programs to MIDI
52 channels any number of times; the SoundFont is only loaded the first
53 time.</para>
54 </refsect1>
55
56 <refsect1>
57 <title>Examples</title>
58 <para>
59 Here is an example of the fluidLoad opcode. It uses the file <ulink url="examples/fluidLoad.csd"><citetitle>fluidLoad.csd</citetitle></ulink> and <ulink url="examples/07AcousticGuitar.sf2"><citetitle>07AcousticGuitar.sf2</citetitle></ulink>.
60 <example>
61 <title>Example of the fluidLoad opcode.</title>
62 <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>
63 <xi:include href="examples-xml/fluidLoad.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
64 </example>
65 The output should include a line like this:
66 <screen>
67 SoundFont: 1 Bank: 0 Preset: 0 Seagul Acoustic Git
68 </screen>
69 </para>
70 </refsect1>
71
72 <refsect1>
73 <title>See also</title>
74 <para><link linkend="SiggenSample"><citetitle>Soundfonts</citetitle></link></para>
75 <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>
76 <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>
77 </refsect1>
78
79 <refsect1>
80 <title>Credits</title>
81 <para>Michael Gogins (gogins at pipeline dot
82 com), Steven Yi. Thanks to Peter Hanappe for Fluidsynth.
83 </para>
84 <para>New in Csound5.00</para>
85 </refsect1>
86 </refentry>