| 1 | |
| 2 | <refentry id="sfilist"> |
| 3 | <indexterm id="IndexSfilist"><primary>sfilist</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Sample Playback</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>sfilist</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>sfilist</refname> |
| 13 | <refpurpose> |
| 14 | Prints a list of all instruments of a previously loaded SoundFont2 (SF2) file. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Prints a list of all instruments of a previously loaded SoundFont2 (SF2) sample file. These opcodes allow management the sample-structure of SF2 files. In order to understand the usage of these opcodes, the user must have some knowledge of the SF2 format, so a brief description of this format can be found in the <link linkend="SiggenSample"><citetitle>SoundFont2 File Format</citetitle></link> section. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis><command>sfilist</command> ifilhandle [, Sprintprefix] </synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | <para> |
| 33 | <emphasis>ifilhandle</emphasis> -- unique number generated by <link linkend="sfload"><citetitle>sfload</citetitle></link> opcode to be used as an identifier for a SF2 file. Several SF2 files can be loaded and activated at the same time. |
| 34 | </para> |
| 35 | <para> |
| 36 | <emphasis>Sprintprefix</emphasis> -- A string prefix to prepend to each instrument row printed |
| 37 | </para> |
| 38 | </refsect1> |
| 39 | |
| 40 | <refsect1> |
| 41 | <title>Performance</title> |
| 42 | <para> |
| 43 | <emphasis>sfilist</emphasis> prints a list of all instruments of a previously loaded SF2 file to the console. |
| 44 | </para> |
| 45 | |
| 46 | <para> |
| 47 | These opcodes only support the sample structure of SF2 files. The modulator structure of the SoundFont2 format is not supported in Csound. Any modulation or processing to the sample data is left to the Csound user, bypassing all restrictions forced by the SF2 standard. |
| 48 | </para> |
| 49 | </refsect1> |
| 50 | |
| 51 | <refsect1> |
| 52 | <title>Examples</title> |
| 53 | <para> |
| 54 | Here is an example of the sfilist opcode. It uses the file <ulink url="examples/sfilist.csd"><citetitle>sfilist.csd</citetitle></ulink>. |
| 55 | <example> |
| 56 | <title>Example of the sfilist opcode.</title> |
| 57 | <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> |
| 58 | <xi:include href="examples-xml/sfilist.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 59 | </example> |
| 60 | Its output should include lines like this: |
| 61 | <screen> |
| 62 | Instrument list of "sf_GMbank.sf2" |
| 63 | 0) Piano 1 |
| 64 | 1) Piano 2 |
| 65 | 2) CP 70 |
| 66 | 3) EP 1 layer 1 |
| 67 | 4) EP 1 layer 2 |
| 68 | 5) E.Piano 2 |
| 69 | 6) Harpsichord |
| 70 | ....... |
| 71 | 100) Halo Pad |
| 72 | ....... |
| 73 | </screen> |
| 74 | </para> |
| 75 | </refsect1> |
| 76 | |
| 77 | <refsect1> |
| 78 | <title>See also</title> |
| 79 | <para><link linkend="SiggenSample"><citetitle>Soundfonts</citetitle></link></para> |
| 80 | <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> |
| 81 | <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> |
| 82 | </refsect1> |
| 83 | |
| 84 | <refsect1> |
| 85 | <title>Credits</title> |
| 86 | <para> |
| 87 | <simplelist> |
| 88 | <member>Author: &namegabriel;</member> |
| 89 | <member>Italy</member> |
| 90 | <member>May 2000</member> |
| 91 | </simplelist> |
| 92 | </para> |
| 93 | |
| 94 | <para>New in Csound Version 4.07</para> |
| 95 | </refsect1> |
| 96 | </refentry> |