MIDI.TrackVolumeSet method |
|
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 MIDI object section and the How to deal with MIDI protocol tutorial.
Syntax
[Visual Basic] control.MIDI.TrackVolumeSet ( nPlayer as Integer, nTrack as Integer, fTrackVolume as Single ) as enumErrorCodes |
[C++] short control.MIDI.TrackVolumeSet ( 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 |
The new volume, expressed in percentage, to apply 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 |