Copyright © 2005-2019 MultiMedia Soft

MIDI.BPMGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the current BPM (Beats Per Minute) of the playing MIDI stream. The current BPM can be changed through a call to the MIDI.BPMSet method and is also affected by calls to the MIDI.TempoPercSet method.

 

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 BPMGet (

nPlayerIndex as Int16,

ByRef fBPM as Single

) as enumErrorCodes


 

[C#]

public enumErrorCodes BPMGet (

Int16 nPlayerIndex,

ref float fBPM

);


 

[C++]

public: enumErrorCodes BPMGet (

Int16 nPlayerIndex,

float __gc *fBPM

);


 

 

 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the involved player

fBPM

Reference that, on return from the method call, will contain the BPM of the loaded MIDI stream.

 

 

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.