Copyright © 2001-2019 MultiMedia Soft

MIDI.BPMSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Modifies the current BPM (Beats Per Minute) of the playing MIDI stream. The current BPM can be obtained through the MIDI.BPMGet method. By modifying the BPM of the playing MIDI stream, the tempo of the stream 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.BPMSet (

nPlayer as Integer,

fBPM as Single

) as enumErrorCodes


 

[C++]

short control.MIDI.BPMSet (

short nPlayer,

float fBPM

);


 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

fBPM

The new BPM to set on 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