Struct MidiFont
Used with StreamSetFonts(Int32, MidiFont[], Int32) and StreamGetFonts(Int32, MidiFont[], Int32) to set and retrieve soundfont configurations.
Namespace: System.Dynamic.ExpandoObject
Assembly: ManagedBass.Midi.dll
Syntax
public struct MidiFont
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 StreamEvent(Int32, Int32, MidiEventType, 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 MidiFontEx structure.
Fields
Bank
Base bank number, or the bank number of the individual preset. This determines what Bank event value(s) the soundfont is used for.
Declaration
public int Bank
Field Value
Int32
|
Handle
Soundfont handle, previously inititialized with FontInit(String, FontInitFlags).
Declaration
public int Handle
Field Value
Int32
|