MIDI.MarkersEnumItemGet method |
|
Remarks
After completing the enumeration, started through the MIDI.MarkersEnum method, of a specific type of marker detected inside the loaded MIDI stream, allows retrieving information about a specific marker.
For further details about the use of MIDI protocol see the MIDI object section and the How to deal with MIDI protocol tutorial.
Syntax
[Visual Basic] control.MIDI.MarkersEnumItemGet ( nPlayer as Integer, nMarkerType as enumMidiMarkerNotifications, nMarkerIndex as Long, fPosition as Double, nPositionUnit as enumMidiPositionUnits, nTrack as Integer ) as BSTR |
[C++] BSTR control.MIDI.MarkersEnumItemGet ( short nPlayer, short nMarkerType, long nMarkerIndex, double *fPosition, short nPositionUnit, short *nTrack ); |
\
Parameter |
Description |
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
nPlayer |
Number representing the zero-based index of the involved player |
||||||||||||||||||||||||||||||
nMarkerType |
Type of marker whose notification for which there is an interest. Supported values are the following:
|
||||||||||||||||||||||||||||||
nMarkerIndex |
Number representing the zero-based index of the marker. |
||||||||||||||||||||||||||||||
fPosition |
Reference that, on return from the method call, will contain the position of the marker expressed in the unit set inside the nPositionUnit parameter below. |
||||||||||||||||||||||||||||||
nPositionUnit |
The unit of measure used for the position value stored inside fPosition parameter above. Supported values are the following:
|
||||||||||||||||||||||||||||||
nTrack |
Reference that, on return from the method call, will contain the number of the MIDI track where the marker was detected. The total number of available MIDI tracks can be obtained through the MIDI:TrackCountGet method. |
Return value
Value |
Meaning |
||||
|
|
||||
Empty string |
An error occurred (see the LastError property for further error details) |
||||
Valid string |
String containing the requested marker. When dealing with markers MIDI_NOTIFICATION_LYRIC or MIDI_NOTIFICATION_TEXT, the returned string may contain the following characters:
|