| 1 | |
| 2 | <refentry id="fluidNote"> |
| 3 | <indexterm id="IndexFluidNote"><primary>fluidNote</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Sample Playback</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>fluidNote</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>fluidNote</refname> |
| 13 | <refpurpose> |
| 14 | Plays a note on a channel in a fluidSynth engine. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Syntax</title> |
| 20 | <synopsis><command>fluidNote</command> ienginenum, ichannelnum, imidikey, imidivel</synopsis> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Description</title> |
| 25 | <para> |
| 26 | Plugin opcode in fluidOpcodes. This opcode is part of the plugin repository and has to be installed separately. |
| 27 | The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para> |
| 28 | <para>Plays a note at <emphasis>imidikey</emphasis> pitch and <emphasis>imidivel</emphasis> velocity |
| 29 | on <emphasis>ichannelnum</emphasis> channel of number <emphasis>ienginenum</emphasis> fluidEngine. |
| 30 | </para> |
| 31 | </refsect1> |
| 32 | |
| 33 | <refsect1> |
| 34 | <title>Initialization</title> |
| 35 | |
| 36 | <para><emphasis>ienginenum </emphasis> -- engine number assigned from |
| 37 | fluidEngine</para> |
| 38 | |
| 39 | <para><emphasis>ichannelnum </emphasis> -- which channel number to play a note |
| 40 | on in the given fluidEngine</para> |
| 41 | |
| 42 | <para><emphasis>imidikey</emphasis> -- MIDI key for note (0-127)</para> |
| 43 | |
| 44 | <para><emphasis>imidivel </emphasis> -- MIDI velocity for note (0-127)</para> |
| 45 | |
| 46 | </refsect1> |
| 47 | |
| 48 | <refsect1> |
| 49 | <title>Examples</title> |
| 50 | <para> |
| 51 | Here is an example of the fluidNote opcode. It uses the file <ulink url="examples/fluidNote.csd"><citetitle>fluidNote.csd</citetitle></ulink> and <ulink url="examples/19Trumpet.sf2"><citetitle>19Trumpet.sf2</citetitle></ulink>. |
| 52 | <example> |
| 53 | <title>Example of the fluidNote opcode.</title> |
| 54 | <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> |
| 55 | <xi:include href="examples-xml/fluidNote.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 56 | </example> |
| 57 | The output should include a line like this: |
| 58 | <screen> |
| 59 | SoundFont: 1 Bank: 0 Preset: 56 Trumpet metallic |
| 60 | </screen> |
| 61 | </para> |
| 62 | </refsect1> |
| 63 | |
| 64 | <refsect1> |
| 65 | <title>See also</title> |
| 66 | <para><link linkend="SiggenSample"><citetitle>Soundfonts</citetitle></link></para> |
| 67 | <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> |
| 68 | <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> |
| 69 | </refsect1> |
| 70 | |
| 71 | <refsect1> |
| 72 | <title>Credits</title> |
| 73 | <para>Michael Gogins (gogins at pipeline dot com), Steven Yi. |
| 74 | Thanks to Peter Hanappe for Fluidsynth.</para> |
| 75 | </refsect1> |
| 76 | </refentry> |