| 1 | |
| 2 | <refentry id="fluidProgramSelect"> |
| 3 | <indexterm id="IndexFluidProgramSelect"><primary>fluidProgramSelect</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Sample Playback</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>fluidProgramSelect</refentrytitle> |
| 7 | </refmeta> |
| 8 | <refnamediv> |
| 9 | <refname>fluidProgramSelect</refname> |
| 10 | <refpurpose> |
| 11 | Assigns a preset from a SoundFont to a channel on a fluidEngine. |
| 12 | </refpurpose> |
| 13 | </refnamediv> |
| 14 | |
| 15 | <refsect1> |
| 16 | <title>Syntax</title> |
| 17 | <synopsis><command>fluidProgramSelect</command> ienginenum, ichannelnum, isfnum, ibanknum, ipresetnum</synopsis> |
| 18 | </refsect1> |
| 19 | |
| 20 | <refsect1> |
| 21 | <title>Description</title> |
| 22 | <para> |
| 23 | Plugin opcode in fluidOpcodes. This opcode is part of the plugin repository and has to be installed separately. |
| 24 | The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para> |
| 25 | <para>Assigns a preset from a SoundFont to a channel on a fluidEngine. |
| 26 | </para> |
| 27 | </refsect1> |
| 28 | |
| 29 | <refsect1> |
| 30 | <title>Initialization</title> |
| 31 | <para><emphasis>ienginenum</emphasis> -- engine number assigned from fluidEngine</para> |
| 32 | <para><emphasis>ichannelnum</emphasis> -- which channel number to use for the preset in the given fluidEngine</para> |
| 33 | <para><emphasis>isfnum</emphasis> -- number of the SoundFont from which the preset is assigned</para> |
| 34 | <para><emphasis>ibanknum</emphasis> -- number of the bank in the SoundFont from which the preset is assigned</para> |
| 35 | <para><emphasis>ipresetnum</emphasis> -- number of the preset to assign</para> |
| 36 | |
| 37 | </refsect1> |
| 38 | |
| 39 | |
| 40 | <refsect1> |
| 41 | <title>Examples</title> |
| 42 | <para> |
| 43 | Here is an example of the fluidProgramSelect opcode. It uses the file <ulink url="examples/fluidProgramSelect.csd"><citetitle>fluidProgramSelect.csd</citetitle></ulink>. |
| 44 | </para> |
| 45 | <xi:include href="examples-xml/fluidProgramSelect.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 46 | <para> |
| 47 | Here is another more complex example of the fluidsynth opcodes written by Istvan Varga. It uses the file <ulink url="examples/fluidcomplex.csd"><citetitle>fluidcomplex.csd</citetitle></ulink>. |
| 48 | </para> |
| 49 | <xi:include href="examples-xml/fluidcomplex.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 | <refsect1> |
| 60 | <title>Credits</title> |
| 61 | <para>Michael Gogins (gogins at pipeline dot com), Steven Yi. |
| 62 | Thanks to Peter Hanappe for Fluidsynth.</para> |
| 63 | </refsect1> |
| 64 | </refentry> |