Frage

**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!!!

War es hilfreich?

Lösung

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:

  1. define your custom structure that contains AUGraph & AudioUnit.
  2. pass your custom structure pointer as refCon in MIDIInputPortCreate or srcConnRefCon in MIDIPortConnectSource for call functions such as MusicDeviceMIDIEvent in your MIDIReadProc at that callback thread.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top