Really great tutorial by the folks over at Create Digital Music. See how you can connect a midi interface to your iPad. You can then control your iPad with an external midi keyboard. You can also use the iPad to control your midi hardware.
I’m using a Micro X Korg as a midi controller for my iPad. Works great. Just connect the USB to the camera connection kit adapter and you’re good to go!