AUMIDISynth program change messages not working?
AUMIDISynth program change messages not working?
- Subject: AUMIDISynth program change messages not working?
- From: Archagon <email@hidden>
- Date: Sat, 09 Jan 2016 20:00:20 -0800
Hello,
I can't figure out how to make the AUMIDISynth MusicDevice
(kAudioUnitType_MusicDevice, kAudioUnitSubType_MIDISynth) change its
instrument on iOS. In the simulator, sending the following message...
UInt32 command = 0xC0 | 0;
UInt32 instrument = arc4random_uniform(100);
MusicDeviceMIDIEvent(self.samplerUnit, command, instrument, 0, 0);
...works fine. On device, however, the synth just goes mute after
receiving the message. (The first instrument in the soundfont —
usually piano — does load correctly, however.) Is this a bug? If so,
is there any way to work around it?
Here's a simple test case based on the LoadPreset demo:
https://github.com/archagon/ios-midisynth-program-change-bug-demo
You can tap the middle button to change to a random instrument.
Thank you,
-Alexei
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden