Copyright © 2001-2018 MultiMedia Soft

MIDI.TempoPercSet method

Previous pageReturn to chapter overviewNext page



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.





[Visual Basic]

control.MIDI.TempoPercSet (

nPlayer as Integer,

fPercentage as Single

) as enumErrorCodes



short control.MIDI.TempoPercSet (

short nPlayer,

float fPercentage








Number representing the zero-based index of the involved player


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






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