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 MIDIMan class section and the How to deal with MIDI protocol tutorial.
Syntax
[Visual Basic] Public Function MarkersEnumItemGet ( nPlayerIndex as Int16, nMarkerType as enumMidiMarkerNotifications, nMarkerIndex as Int32, ByRef fPosition as Double, nPositionUnit as enumMidiPositionUnits, ByRef nTrack as Int16 ) as enumErrorCodes |
[C#] public enumErrorCodes MarkersEnumItemGet ( Int16 nPlayerIndex, enumMidiMarkerNotifications nMarkerType, Int32 nMarkerIndex, ref double fPosition, enumMidiPositionUnits nPositionUnit, ref Int16 nTrack ); |
[C++] public: enumErrorCodes MarkersEnumItemGet ( Int16 nPlayerIndex, enumMidiMarkerNotifications nMarkerType, Int32 nMarkerIndex, double __gc *fPosition, enumMidiPositionUnits nPositionUnit, Int16 __gc *nTrack ); |
Parameter |
Description |
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
nPlayerIndex |
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 |
|
|
Negative value |
An error occurred (see the LastError property for further error details) |
enumErrorCodes.NOERROR (0) |
The method call was successful. |