| 1 | |
| 2 | <refentry id="fluidOut"> |
| 3 | <indexterm id="IndexFluidOut"><primary>fluidOut</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Sample Playback</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>fluidOut</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>fluidOut</refname> |
| 11 | <refpurpose> |
| 12 | Outputs sound from a given fluidEngine |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Syntax</title> |
| 18 | <synopsis>aleft, aright <command>fluidOut</command> ienginenum</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>Outputs the sound from a fluidEngine. |
| 27 | </para> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | |
| 33 | <para><emphasis>ienginenum </emphasis> -- engine number assigned from |
| 34 | fluidEngine</para> |
| 35 | |
| 36 | </refsect1> |
| 37 | |
| 38 | <refsect1> |
| 39 | |
| 40 | <title>Performance</title> |
| 41 | <para><emphasis>aleft</emphasis> -- Left channel audio output.</para> |
| 42 | <para><emphasis>aright</emphasis> -- Right channel audio output.</para> |
| 43 | <para>Invoke fluidOut in an instrument definition numbered higher than any |
| 44 | fluidcontrol instrument definitions. All SoundFonts used in the fluidEngine |
| 45 | numbered <emphasis>ienginenum</emphasis> send their audio output |
| 46 | to this one opcode. Send a note with an indefinite duration to this |
| 47 | instrument to turn the SoundFonts on for as long as required. |
| 48 | </para> |
| 49 | |
| 50 | </refsect1> |
| 51 | |
| 52 | <refsect1> |
| 53 | <title>Examples</title> |
| 54 | <para> |
| 55 | Here is an example of the fluidOut opcode with two fluidOuts. It uses the file <ulink url="examples/fluidOut.csd"><citetitle>fluidOut.csd</citetitle>, <ulink url="examples/01hpschd.sf2"><citetitle>01hpschd.sf2</citetitle></ulink> and </ulink><ulink url="examples/22Bassoon.sf2"><citetitle>22Bassoon.sf2</citetitle></ulink>. |
| 56 | <example> |
| 57 | <title>Example of the fluidOut opcode.</title> |
| 58 | <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> |
| 59 | <xi:include href="examples-xml/fluidOut.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 60 | </example> |
| 61 | The output should include lines like these: |
| 62 | <screen> |
| 63 | chnl 1 using instr 1 |
| 64 | chnl 2 using instr 2 |
| 65 | |
| 66 | SoundFont: 1 Bank: 0 Preset: 0 Harpsichord I-8 |
| 67 | SoundFont: 1 Bank: 0 Preset: 70 Ethan Bassoon mono |
| 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 com), Steven Yi. |
| 82 | Thanks to Peter Hanappe for Fluidsynth.</para> |
| 83 | </refsect1> |
| 84 | <para>New in Csound5.00</para> |
| 85 | </refentry> |