Used with BASS_MIDI_StreamSetFonts(Int32, BASS_MIDI_FONT, Int32) and BASS_MIDI_StreamGetFonts(Int32, BASS_MIDI_FONT, Int32) to set and retrieve soundfont configurations.
Namespace: Un4seen.Bass.AddOn.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
The BASS_MIDI_FONT type exposes the following members.
Constructors
Name | Description | |
---|---|---|
BASS_MIDI_FONT |
Constructor already setting the members.
|
Methods
Name | Description | |
---|---|---|
ToString |
A description of the soundfont configuration object (font, preset, bank)
(Overrides ValueTypeToString.) |
Fields
Name | Description | |
---|---|---|
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.
| |
font |
Soundfont handle, previously inititialized with BASS_MIDI_FontInit(String, BASSFlag).
| |
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.
|
Remarks
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_FONTEX structure.
See Also