Used with BASS_MIDI_StreamSetFonts and BASS_MIDI_StreamGetFonts to set and retrieve soundfont configurations.
typedef struct { HSOUNDFONT font; int preset; int bank; } BASS_MIDI_FONT;
font | Soundfont handle, previously initialized with BASS_MIDI_FontInit. |
preset | Preset number... 0-65535, -1 = use all presets in the soundfont. This determines what MIDI_EVENT_PROGRAM event value(s) the soundfont is used for. |
bank | Base bank number, or the bank number of the individual preset. This determines what MIDI_EVENT_BANK event value(s) the soundfont is used for. |
When using all presets in a soundfont, the bank member is a base number that is added to the soundfont's banks. For example, if bank=1 then the soundfont's bank 0 becomes bank 1, etc. Negative base numbers are allowed.
For more flexible mapping of soundfont presets to MIDI programs, see the BASS_MIDI_FONTEX2 structure.