• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AUMIDISynth program change messages not working?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: AUMIDISynth program change messages not working?
      • From: Douglas Scott <email@hidden>
  • Prev by Date: auvaltool behavior - perhaps strange?
  • Next by Date: Trouble recording using the AUHAL unit.
  • Previous by thread: auvaltool behavior - perhaps strange?
  • Next by thread: Re: AUMIDISynth program change messages not working?
  • Index(es):
    • Date
    • Thread