BASS.NET API for the Un4seen BASS Audio Library

BASS_MIDI_FONT Structure

BASS.NET API for the Un4seen BASS Audio Library

Namespace:  Un4seen.Bass.AddOn.Midi
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

[SerializableAttribute]
public struct BASS_MIDI_FONT

The BASS_MIDI_FONT type exposes the following members.

Constructors

  NameDescription
Public methodBASS_MIDI_FONT
Constructor already setting the members.
Top
Methods

  NameDescription
Public methodToString
A description of the soundfont configuration object (font, preset, bank)
(Overrides ValueTypeToString.)
Top
Fields

  NameDescription
Public fieldbank
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.
Public fieldfont
Soundfont handle, previously inititialized with BASS_MIDI_FontInit(String, BASSFlag).
Public fieldpreset
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.
Top
Remarks

When using an individual preset from a soundfont, BASSMIDI will first look for the exact preset and bank match, but if that is not present, the first preset from the soundfont will be used. This is useful for single preset soundfonts. Individual presets can be assigned to program numbers beyond the standard 127 limit, up to 65535, which can then be accessed via BASS_MIDI_StreamEvent(Int32, Int32, BASSMIDIEvent, Int32).

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

Reference