BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_ChannelGetMidiTrackText Method BASS.NET API for the Un4seen BASS Audio Library
Retrieves a specific MIDI track text from a channel, if it is available.

Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public static string[] BASS_ChannelGetMidiTrackText(
	int handle,
	int track
)

Parameters

handle
Type: SystemInt32
The channel handle...a MIDI HSTREAM.
track
Type: SystemInt32
The MIDI track number (0=first), use -1 to get the text for all tracks.

Return Value

Type: String
or an array of strings. Each array element will represent one text of the MIDI track.
Remarks

The texts of each track in the MIDI file are available via the BASS_TAG_MIDI_TRACK+track tag, where track=0 is the first track. The first text in the first track is generally the title of the MIDI file.

RIFF MIDI tags are also available via the standard BASS_TAG_RIFF_INFO tag.

In addition you might also use the BassTags class, which provides extended TAG reading support.

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.
BASS_ERROR_NOTAVAILThe requested tags are not available.

See Also

Reference