Copyright © 2001-2019 MultiMedia Soft

MIDI.SoundFontListItemAdd method

Previous pageReturn to chapter overviewNext page

Remarks

 

Adds a MIDI SoundFont to the list of SoundFonts that could be applied in a single shot to the loaded MIDI stream through the MIDI.SoundFontListApply 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.SoundFontListItemAdd (

nPlayer as Integer,

nUniqueId As Long,

nPreset as Long,

nBank as Long

) as enumErrorCodes


 

[C++]

short control.MIDI.SoundFontListItemAdd (

short nPlayer,

long nUniqueId,

long nPreset,

long nBank

);


\

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

nUniqueId

Number representing the unique identifier of the MIDI SoundFont as returned by a previous call to one between the MIDI.SoundFontInit or MIDI.SoundFontInitFromMemory or MIDI.SoundFontInitFromMemory methods.

nPreset

The preset number

nBank

The bank number

 

 

 

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