Q: How would you make a melody that fits the rest of the piece and the general idea of it?
A: you just have to make something up. the same way you just make up words when you're talking, and hope it makes sense