Copyright © 2005-2018 MultiMedia Soft

MIDI.TrackVolumeSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Sets the volume level of a specific MIDI track inside the loaded MIDI stream. The current volume level can be obtained through the MIDI.TrackVolumeGet 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 TrackVolumeSet (

nPlayerIndex as Int16,

nTrack as Int16,

fTrackVolume as Single

) as enumErrorCodes


 

[C#]

public enumErrorCodes TrackVolumeSet (

Int16 nPlayerIndex,

Int16 nTrack,

float fTrackVolume

);


 

[C++]

public: enumErrorCodes TrackVolumeSet (

Int16 nPlayerIndex,

Int16 nTrack,

float 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

The new volume, expressed in percentage, to apply 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.