sfplist
Prints a list of all presets 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 SoundFont2 File Format section.
Syntax
Initialization
ifilhandle -- unique number generated by sfload opcode to be used as an identifier for a SF2 file. Several SF2 files can be loaded and activated at the same time.
Performance
sfplist prints a list of all presets of a previously loaded SF2 file to the console.
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.
Examples
Here is an example of the sfplist opcode. It uses the file sfplist.csd.
Its output should include lines like this:
Preset list of "sf_GMbank.sf2"
0) Piano 1 prog:0 bank:0
1) Piano 2 prog:1 bank:0
2) Piano 3 prog:2 bank:0
3) Honky Tonk prog:3 bank:0
4) E.Piano 1 prog:4 bank:0
5) E.Piano 2 prog:5 bank:0
6) Harpsichord prog:6 bank:0
........
146) Car-Pass prog:125 bank:3
........
See also
More information on soundfonts is in the Floss Manuals: https://flossmanual.csound.com/midi/reading-midi-files
For other information on soundfonts look in the Wikipedia: http://en.wikipedia.org/wiki/Soundfont
Credits
Author: Gabriel Maldonado
Italy
May 2000
New in Csound Version 4.07