BASS.NET API for the Un4seen BASS Audio Library

BassMidiBASS_MIDI_StreamGetEvents Method (Int32, Int32, BASSMIDIEvent)

BASS.NET API for the Un4seen BASS Audio Library
Retrieves the events in a MIDI file stream.

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

public static BASS_MIDI_EVENT[] BASS_MIDI_StreamGetEvents(
	int handle,
	int track,
	BASSMIDIEvent filter
)

Parameters

handle
Type: SystemInt32
The MIDI stream to get the events from.
track
Type: SystemInt32
The track to get the events from... 0 = 1st track.
filter
Type: Un4seen.Bass.AddOn.MidiBASSMIDIEvent
The type of event to retrieve (use MIDI_EVENT_NONE to retrieve all events). See BASSMIDIEvent for a list of possible event types.

Return Value

Type: BASS_MIDI_EVENT
An array of BASS_MIDI_FONT configuration entries if successfull - or on error.
Remarks

This overload will always return all present event objects.

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.
BASS_ERROR_NOTAVAILThe stream is for real-time events only, so does not have an event sequence.
BASS_ERROR_ILLPARAMtrack is not valid.

Examples

Retrieve all note events in the 2nd track:
BASS_MIDI_EVENT[] events = BassMidi.BASS_MIDI_StreamGetEvents(_stream, 1, BASSMIDIEvent.MIDI_EVENT_NOTE);
See Also

Reference