BASS.NET API for the Un4seen BASS Audio Library

MidiInputDeviceMessageFilter 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: 2.4.17.5
Syntax

public MIDIMessageType MessageFilter { get; set; }

Property Value

Type: MIDIMessageType
Remarks

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).

Examples

Suppress all real-time and system-exclusive messages:
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() )
    _inDevice.Start();
...
See Also

Reference