Maestro - Midi Player Tool Kit for Unity Version 2.18.2
Loading...
Searching...
No Matches
Working with Banks and Presets

Access and select banks and presets exposed by the active SoundFont.

Once a SoundFont is loaded, Maestro MPTK exposes its available banks and presets.

These lists can be used to:

  • populate user interface selectors,
  • inspect the organization of a SoundFont,
  • choose a default instrument bank,
  • choose a default drum bank.

Bank Lists

Available banks are exposed through:

  • BanksName
  • BanksNumber
  • ListBank

The preferred modern access pattern is to use BanksName and BanksNumber together, because missing banks are removed and the indices remain aligned.

Preset Lists

Available presets are exposed through:

  • PresetsName
  • PresetsNumber
  • PresetsDrumName
  • PresetsDrumNumber
  • ListPreset
  • ListPresetDrum

The preferred modern access pattern is to use the string and number lists rather than the legacy MPTKListItem collections.

Selecting Default Banks

The methods SelectBankInstrument() and SelectBankDrum() update the default bank used to build the preset lists.

This updates the SoundFont browsing state, but does not directly change the active instrument already used by MIDI playback.

See also
MidiPlayerTK.MPTKSoundFont.SelectBankInstrument
MidiPlayerTK.MPTKSoundFont.SelectBankDrum
MidiPlayerTK.MPTKSoundFont.BanksName
MidiPlayerTK.MPTKSoundFont.PresetsName
MidiPlayerTK.MidiSynth.MPTK_ChannelPresetChange