Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access instruments in multi-instrument and presets sound font #318

Open
valnenov opened this issue Aug 30, 2021 · 1 comment
Open

Comments

@valnenov
Copy link

I have a General purpose Soundfornt https://www.philscomputerlab.com/uploads/3/7/2/3/37231621/weedsgm3.sf2 and want to access the individual instruments in iOS Objective-C but when I load the soundFont with [_synthesizer loadSoundfontFromFileAtURL:@"weedsgm3.sf2" error:&error] and use noteOn/noteOff commands I hear only the 1st instrument in the list. Using the availableInstruments method from MIKMIDISynthesizer.m returns an empty array. Issuing the commands with different channel values (0-15) does not make any difference.

Playing back a mult-track multi-instrument .mid file like https://en.wikipedia.org/wiki/File:MIDI_sample.mid?qsrc=3044#file with [_midiSequencer startPlayback]; does not play the instruments either even though I have loaded the multi-instrument soundFont.

Can someone please let me know how to do this? A working code example will be great:-)

@valnenov
Copy link
Author

valnenov commented Sep 7, 2021

Hi Andrew, any chance you could spate a few minutes for a few lines of code that can help me solve the issues in #318 and #317?
Best regards,
Val

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant