MidiPlayerTK.MPTKListItem

This class is useful when a list of paired value string+id is needed.
This is also the entry point to display a popup for selecting a value by user: midi, preset, bank, drum, generator, ... More...

Public Attributes

int Index
 Index associated to the label (not to mix up with Position in list): More...
 
string Label
 Label associated to the index. More...
 
int Position
 Position in a list (not to mix up with Index which is a value associated to the Label) More...
 

Detailed Description

This class is useful when a list of paired value string+id is needed.
This is also the entry point to display a popup for selecting a value by user: midi, preset, bank, drum, generator, ...

Member Data Documentation

◆ Index

int MidiPlayerTK.MPTKListItem.Index

Index associated to the label (not to mix up with Position in list):

  • Patch number if patch list,
  • Bank number if bank list,
  • Midi Index for selecting a Midi from the MidiDB.
  • Generator Id for selecting a generator to apply.

◆ Label

string MidiPlayerTK.MPTKListItem.Label

Label associated to the index.

  • Patch Label if patch list (Piano, Violin, ...),
  • Midi File Name for selecting a Midi from the MidiDB.
  • Generator Name for selecting a generator to apply.

◆ Position

int MidiPlayerTK.MPTKListItem.Position

Position in a list (not to mix up with Index which is a value associated to the Label)