Set up iPhone as midi controller for Cubasis 3 running on iPad

Hello, I have Cubasis 3 on both my iPad and iPhone. I am running a project on my iPad, and would like to use my iPhone as an external midi controller to input midi notes to the project on my iPad. Is there a way to do it?

Thanks in advance.

Seems unnecessary, considering that whatever virtual MIDI instrument plugin you use will most likely have a popup on-screen piano keyboard.

Are there more pertinent details, which you’ve left out?