Quantize tempelate

I have a audio bassline which isnt exactly on the grid. I tried to make a quantize tempelate which i wanted to apply other tracks. But the result didnt turn out good.
Is there another way i could do this?
Can i for example make a grid which forces my new bass to line up like my original bass? Right now i edit each indivudual bassnote to play at similar timing allthough this is very timeconsuming. Very thankful if anyone could give me some advice.

How To Quantize Audio to Match Other Samples | Quick Tip - YouTube

is this what you are looking for maybe?

Thank you i will give it a try again and see how it works