SoundFontIndex#

class csoundengine.csoundlib.SoundFontIndex(soundfont)[source]#

Bases: object

Creates an index of presets for a given soundfont

instrs#

a list of instruments, where each instrument is a tuple (instr. index, name)

presets#

a list of presets, where each preset is a tuple (bank, num, name)

nameToIndex#

a dict mapping instr name to index

indexToName#

a dict mapping instr idx to name

nameToPreset#

a dict mapping preset name to (bank, num)

presetToName#

a dict mapping (bank, num) to preset name