Cubase does not record midi sound correctly

Hi , nice to meet you all

I have some problems regarding the midi note recording made by cubase not being the same as the one I play in midi

For example, I recorded the song River Flow in You, using midi, when I looked back at the recorded midi notes, I found that some parts of the song, especially the fast parts, were not recorded correctly and made a strange sound.

Please help solve this problem

Hi,

In which sense, please? Is it in the timing or wrong pitch, or what is not correct, please?