MIDI.BPMSet method |
|
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 MIDIMan class section and the How to deal with MIDI protocol tutorial.
Syntax
[Visual Basic] Public Function BPMSet ( nPlayerIndex as Int16, fBPM as Single ) as enumErrorCodes |
[C#] public enumErrorCodes BPMSet ( Int16 nPlayerIndex, float fBPM ); |
[C++] public: enumErrorCodes BPMSet ( Int16 nPlayerIndex, float fBPM ); |
Parameter |
Description |
|
|
nPlayerIndex |
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 (see the LastError property for further error details) |
enumErrorCodes.NOERROR (0) |
The method call was successful. |