MidiMarkerNotification event |
|
Remarks
Occurs when a specific type of MIDI marker, previously enabled for notification, has been found inside the MIDI stream during playback.
Notifications of a specific MIDI marker can be enabled/disabled through the MIDI.MarkersEnableNotifications method.
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] MidiMarkerNotification ( ByVal nPlayer as Integer, ByVal nMarkerType as enumMidiMarkerNotifications, ByVal nTrack as Integer, ByVal fPositionInMs as Double, ByVal fPositionInTicks as Double, ByVal fPositionInPercentage as Double, ByVal strText as String ) |
[C++] void MidiMarkerNotification ( short nPlayer, long nMarkerType, short nTrack, double fPositionInMs, double fPositionInTicks, double fPositionInPercentage, BSTR strText ); |
Parameter |
Description |
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
nPlayer |
Number representing the zero-based index of the involved player |
||||||||||||||||||||||||||||||
nMarkerType |
Type of MIDI marker. Supported values are the following:
|
||||||||||||||||||||||||||||||
nTrack |
Number representing the zero-based index of the MIDI track. The total number of available MIDI tracks can be obtained through the MIDI:TrackCountGet method. |
||||||||||||||||||||||||||||||
fPositionInMs |
Position of the marker, expressed in milliseconds, inside the MIDI stream |
||||||||||||||||||||||||||||||
fPositionInTicks |
Position of the marker, expressed in MIDI ticks, inside the MIDI stream |
||||||||||||||||||||||||||||||
fPositionInPercentage |
Position of the marker, expressed in percentage, inside the MIDI stream |
||||||||||||||||||||||||||||||
strText |
String containing the text of the marker |