Copyright © 2005-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 MIDIMan class section and the How to deal with MIDI protocol tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function TrackVolumeGet (

nPlayerIndex as Int16,

nTrack as Int16,

ByRef fTrackVolume as Single

) as enumErrorCodes


 

[C#]

public enumErrorCodes TrackVolumeGet (

Int16 nPlayerIndex,

Int16 nTrack,

ref float fTrackVolume

);


 

[C++]

public: enumErrorCodes TrackVolumeGet (

Int16 nPlayerIndex,

Int16 nTrack,

float __gc *fTrackVolume

);


 

 

 

Parameter

Description

 

 

nPlayerIndex

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 (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.