loadSoundBankInstrument(at:program:bankMSB:bankLSB:)
Loads a specific instrument from the specified soundbank.
Declaration
func loadSoundBankInstrument(at bankURL: URL, program: UInt8, bankMSB: UInt8, bankLSB: UInt8) throwsParameters
- bankURL:
The URL for a soundbank file, either a DLS bank (
.dls) or a SoundFont bank (.sf2). - program:
The program number for the instrument to load.
- bankMSB:
The most significant bit for the bank number for the instrument to load. This is usually
0x79for melodic instruments and0x78for percussion instruments. - bankLSB:
The least significant bit for the bank number for the instrument to load. This is often
0and represents the bank variation.