soundfontInstruments

soundfontInstruments#

csoundengine.csoundlib.soundfontInstruments(sfpath)[source]#

Get instruments for a soundfont

The instrument index is used by csound opcodes like sfinstr. These are different from soundfont programs, which are ordered in banks/presets

Parameters:

sfpath (str) – the path to the soundfont. “?” to open a file-browser dialog

Return type:

list[tuple[int, str]]

Returns:

list[tuple[int,str]] - a list of tuples, where each tuple has the form (index: int, instrname: str)