Don Grem
Don Grem

Reputation: 1267

How can I generate programmatically a MIDI event on iPad

I would like to test a MIDI app and want to generate some MIDI events without attaching a physical keyboard. Any hints?

Upvotes: 1

Views: 957

Answers (3)

Domestic Cat
Domestic Cat

Reputation: 1434

If you are using CoreMidi, setup your app to use MIDINetworkSessions. Once you advertise your iPad over the network, use any MIDI sequencer etc to connect to it and send messages over WiFi.

That way you can test without constantly unplugging/replugging things, and while still tethered to Xcode which is a huge bonus.

The other option would be to create an artificial MIDIPacketList and send it directly to your handler, but this is a lot less flexible.

Upvotes: 2

tokentoken
tokentoken

Reputation: 682

I suppose you need some source codes to generate MIDI events on iPad.

I found this one. It is a wrapper class of CoreMIDI, and it has source codes of sending/receiving some MIDI events.

RCTMidiLib https://github.com/recotana/RCTMidiLib

I connect iPad and Mac wirelessly, and successfully send/receive MIDI events using the test application on iPad.

Upvotes: 1

Nik Reiman
Nik Reiman

Reputation: 40380

If you mean sending a MIDI event to an iPad, then you could use a simple program like Rondo to play a MIDI file to it.

Upvotes: 1

Related Questions