MIDI.TempoPercSet method |
|
Remarks
Modifies the tempo of the playing MIDI stream. The current tempo can be obtained through the MIDI.TempoPercGet method. By modifying the tempo of the playing MIDI stream, the number of Beats Per Minute (BPM) will be affected accordingly.
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.TempoPercSet ( nPlayer as Integer, fPercentage as Single ) as enumErrorCodes |
[C++] short control.MIDI.TempoPercSet ( short nPlayer, float fPercentage ); |
Parameter |
Description |
|
|
nPlayer |
Number representing the zero-based index of the involved player |
fPercentage |
The tempo variation expressed in percentage. Can assume negative values to slow down the playback tempo or positive values to accelerate the playback tempo. Setting this parameter to 0 will set the original tempo of the loaded MIDI stream. |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to get the error code |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful |