BASS.NET API for the Un4seen BASS Audio Library

Un4seen.Bass.AddOn.Midi Namespace

BASS.NET API for the Un4seen BASS Audio Library
This namespace contains all classes, delegates and enumerations to support the native bassmidi.dll. BASSMIDI is an extension enabling the playback of MIDI files and real-time events, using SF2 soundfonts to provide the sounds.

All BASSMIDI API calls are contained in the main class BassMidi and have been implemented as static methods. So there is NO need to create an instance of the BassMidi class!

All BASSMIDI structures have been implemented as real classes (named in capital letters). This because they are much easier to use and reflect exactly what BASSMIDI would expect. Those classes needs to be instantiated before their use.

Classes

  ClassDescription
Public classBASS_MIDI_DEVICEINFO
Used with BASS_MIDI_InGetDeviceInfo(Int32, BASS_MIDI_DEVICEINFO) to retrieve information on a MIDI input device.
Public classBASS_MIDI_FONTINFO
Used with BASS_MIDI_FontGetInfo(Int32, BASS_MIDI_FONTINFO) to retrieve information on a soundfont.
Public classBASS_MIDI_MARK
Public classBassMidi
BASS .NET API wrapper for BASSMIDI.

Requires: bassmidi.dll - BASSMIDI Add-On - available @ www.un4seen.com.

Structures

  StructureDescription
Public structureBASS_MIDI_EVENT
Used with BASS_MIDI_StreamEvents(Int32, BASSMIDIEventMode, BASS_MIDI_EVENT, Int32) to apply events and BASS_MIDI_StreamGetEvents(Int32, Int32, BASSMIDIEvent, BASS_MIDI_EVENT) to retrieve events, and BASS_MIDI_StreamCreateEvents(BASS_MIDI_EVENT, Int32, BASSFlag, Int32) to play event sequences.
Public structureBASS_MIDI_FONT
Public structureBASS_MIDI_FONTEX
Public structureBASS_MIDI_FONTEX2
Delegates

  DelegateDescription
Public delegateCode exampleMIDIFILTERPROC
User defined callback function to filter events.
Public delegateCode exampleMIDIINPROC
User defined callback delegate to receive MIDI data (to be used with BASS_MIDI_InInit(Int32, MIDIINPROC, IntPtr)).
Enumerations

  EnumerationDescription
Public enumerationBASSMIDIEvent
Public enumerationBASSMIDIEventMode
The type of event data to apply, to be used with BASS_MIDI_StreamEvents(Int32, BASSMIDIEventMode, BASS_MIDI_EVENT, Int32).
Public enumerationBASSMIDIFont
The LoadFont flags to be used with BASS_MIDI_FontLoad(Int32, Int32, Int32)
Public enumerationBASSMIDIMarker
Public enumerationBASSMIDISystem
System mode parameter, to be used with MIDI_EVENT_SYSTEM, MIDI_EVENT_SYSTEMEX.