"Figuring out the right basslines and rhythm for melodies"
this is where you have to develop and apply your musical imagination, simplest way is to record your melodie and image what you want to 'surround' it with as accompaniment - then workout how to do it - simple