Copyright © 2001-2018 MultiMedia Soft

MIDI.TrackVolumeGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the volume level of a specific MIDI track inside the loaded MIDI stream. The volume level can be modified through the MIDI.TrackVolumeSet method.

 

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.TrackVolumeGet (

nPlayer as Integer,

nTrack as Integer,

fTrackVolume as Single

) as enumErrorCodes


 

[C++]

short control.MIDI.TrackVolumeGet (

short nPlayer,

short nTrack,

float *fTrackVolume

);


 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player.

nTrack

Number representing the zero-based index of the MIDI track inside the loaded MIDI stream. The total number of available MIDI tracks can be obtained through the MIDI:TrackCountGet method.

fTrackVolume

Reference that, on return from the method call, will contain the volume, expressed in percentage, applied to the track.

 

 

 

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