Copyright © 2005-2019 MultiMedia Soft

MIDI.VoicesDefaultGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the default maximum number of voices to play at a time for supporting polyphony. The maximum number can be modified through the MIDI.VoicesDefaultSet method.

 

The number of voices for a loaded MIDI stream can be determined through the MIDI.VoicesGet method or modified through the MIDI.VoicesSet 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 VoicesDefaultGet (

ByRef nVoices as Int16

) as enumErrorCodes


 

[C#]

public enumErrorCodes VoicesDefaultGet (

ref Int16 nVoices

);


 

[C++]

public: enumErrorCodes VoicesDefaultGet (

Int16 __gc *nVoices

);


 

 

 

Parameter

Description

 

 

nVoices

Reference that, on return from the method call, will contain the default maximum number of voices to play at a time.

 

 

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.