BASS.NET API for the Un4seen BASS Audio LibraryMidiInputDeviceMessageFilter Property BASS.NET API for the Un4seen BASS Audio Library
Gets or Sets the filter to be applied (messages types which should be suppressed).

Namespace: radio42.Multimedia.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version:

public MIDIMessageType MessageFilter { get; set; }

Property Value

Type: MIDIMessageType

By default all MIDIMessageType messages will raise the MessageReceived event.

You might combine any value of the MIDIMessageType enumeration in order to suppresses certain messages (e.g. to not process real-time messages).


Suppress all real-time and system-exclusive messages:
Private _inDevice As MidiInputDevice = Nothing
_inDevice = New MidiInputDevice(0)
_inDevice.AutoPairController = True
_inDevice.MessageFilter = MIDIMessageType.SystemRealtime Or MIDIMessageType.SystemExclusive
AddHandler _inDevice.MessageReceived, AddressOf InDevice_MessageReceived
If _inDevice.Open() Then
End If
private MidiInputDevice _inDevice = null;
_inDevice = new MidiInputDevice(0);
_inDevice.AutoPairController = true;
_inDevice.MessageFilter = MIDIMessageType.SystemRealtime | MIDIMessageType.SystemExclusive;
_inDevice.MessageReceived += new MidiMessageEventHandler(InDevice_MessageReceived);
if ( _inDevice.Open() )
See Also