Problem with MIDI Cubase and TYROS 4 synchronization

My computer is an iMac High Sierra system
I have a problem with MIDI sync in CUBASE 9 and TYROS 4 while recording after MIDI style music - example shown in the picture.
The beat of the style / percussion / instrument in MIDI file NEWSONG and imported in CUBASE - everything is perfect. Second track recorded with the connected instrument via USB cable as MIDI.
I would like to get full synchronization as in path 1.
Greetings Piotr

Hi and welcome,

I wonder about your Project Synchronization Setup. Your Tyros is source and also the destination? I would expect Cubase is the master (Source: Internal Timecode) and your Tyros is the slave: Destination.