Sending midi message via midi

Hi, yesterdy I’ve connected my Ipad (with Focusrite Itrack dock) to my notebook via Wi-Fi using RTPMIDI on notebook. Using Cubasis in Ipad I’ve routed a track to Wi-Fi output toward a track of Cubase in notebook. I’ve noted that there SAS many latency of the sound emitted by notebook. Do you think that ai risolve the problem with nn audio Interface on notebook or It’s the latency of the midi wireless connetti on? However I wish to know if is it possible to send midi clock From ipad to cubase on notebook so to link cubasis to cubase.

Thank you