**I had a piano ios applications, I can use CoreMidi normally receive external MIDI controller information, but no voice. So I want to use MIDI like (0x90,30,127) bytes to make a sound, can someone answer my question? Thank you very much!!!
If you mean uses iOS device as MIDI Synthesizer (sound output from iOS device),
You needs AUGraph
& AudioUnit
(Look up in Xcode Help search for "Sampler Unit Presets (LoadPresetDemo)")
After you understand that some tips from me:
AUGraph
& AudioUnit
.refCon
in MIDIInputPortCreate
or srcConnRefCon
in MIDIPortConnectSource
for call functions such as MusicDeviceMIDIEvent
in your MIDIReadProc
at that callback thread.