Several simple examples for using AVAudioUnitSampler
.
Note: the aupreset references files on my computer. You will need to edit the aupreset to update the file references to your samples.
Look at ViewController and comment/uncomment each "performer"
I use the "FluidR3" SoundFont from Musescore. Go to that website and download it. It has an MIT license. Or use a SoundFont of your choice.
If you find one, please add it to issues
Please read the LICENSE for details.