I bought this Apple lightning adapter to connect a midi keyboard to my iPad for controlling IOS music and synthesiser apps and it works perfectly. Also has the added advantage of charging the iPad while operating the midi controller which would otherwise draw power from the iPad.