Debian Codegraph @

opcodes/fluidEngine.xml

raw symbols SCIP
1
2 <refentry id="fluidEngine">
3 <indexterm id="IndexFluidEngine"><primary>fluidEngine</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Sample Playback</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>fluidEngine</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>fluidEngine</refname>
11 <refpurpose>
12 Instantiates a fluidsynth engine.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Syntax</title>
18 <synopsis>ienginenum <command>fluidEngine</command> [iChorusEnabled] [, iRevervEnabled] [, iNumChannels] [, iPolyphony] </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>Instantiates a fluidsynth engine, and returns <emphasis>ienginenum</emphasis> to identify the
27 engine. <emphasis>ienginenum</emphasis> is passed to other other opcodes for loading
28 and playing SoundFonts and gathering the generated sound.
29 </para>
30 </refsect1>
31
32 <refsect1>
33 <title>Initialization</title>
34 <para><emphasis>ienginenum </emphasis> -- engine number assigned from fluidEngine.</para>
35 <para><emphasis>iChorusEnabled </emphasis> -- optionally set to 0 to disable any chorus effect in the loaded SoundFonts.</para>
36 <para><emphasis>iReverbEnabled </emphasis> -- optionally set to 0 to disable any reverb effect in the loaded SoundFonts.</para>
37 <para><emphasis>iNumChannels </emphasis> -- number of channels to use; range is 16-256 and Csound default is 256 (Fluidsynth's default is 16).</para>
38 <para><emphasis>iPolyphony </emphasis> -- number of voices to be played in parallel; range is 16-4096 and Csound default is 4096 (Fluidsynth's default is 256).
39 Note: this is not the number of notes played at the same time as a single note may use create multiple voices depending on instrument zones
40 and velocity/key of played note.
41 </para>
42 </refsect1>
43
44 <refsect1>
45 <title>Examples</title>
46 <para>
47 Here is example of the fluidsynth opcodes using 2 engines. It uses the file <ulink url="examples/fluidEngine.csd"><citetitle>fluidEngine.csd</citetitle></ulink> and <ulink url="examples/midichn_advanced.mid"><citetitle>midichn_advanced.mid</citetitle></ulink>.
48 </para>
49 <xi:include href="examples-xml/fluidEngine.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
50 </refsect1>
51
52 <refsect1>
53 <title>See also</title>
54 <para><link linkend="SiggenSample"><citetitle>Soundfonts</citetitle></link></para>
55 <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>
56 <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>
57 </refsect1>
58
59
60 <refsect1>
61 <title>Credits</title>
62 <para>Michael Gogins (gogins at pipeline dot com), Steven Yi.
63 Thanks to Peter Hanappe for Fluidsynth.</para>
64 <para>Optional <emphasis>iNumChannels</emphasis> and
65 <emphasis>iPolyphony</emphasis> parameters added in 5.07</para>
66 <para>Order of arguments corrected in manual August 2019.</para>
67 </refsect1>
68 </refentry>