Copyright © 2005-2019 MultiMedia Soft

MIDI.PulsesPerQuarterNoteGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the number of Pulses Per Quarter Note (also known as "ticks per beat") inside the loaded MIDI stream.

 

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

nPlayerIndex as Int16,

ByRef fPPQN as Single

) as enumErrorCodes


 

[C#]

public enumErrorCodes PulsesPerQuarterNoteGet (

Int16 nPlayerIndex,

ref float fPPQN

);


 

[C++]

public: enumErrorCodes PulsesPerQuarterNoteGet (

Int16 nPlayerIndex,

float __gc *fPPQN

);


 

 

 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the involved player

fPPQN

Reference that, on return from the method call, will contain the number of Pulses Per Quarter Note inside 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.