The bassline is off key, so what I would recommend is tuning it properly and then make sure you are playing the right notes in the correct key. Use an uncommon sound that stands out more than the bassline and then place a pattern, finds the correct key, and just replace that with your bassline.