Hi Ross, as PJ says, it's kinda hard without the song to hear, but most composing software has a metronome that clicks on the beat, so you'll know.
it's only need to be 'with the beat' if there are more than one intrument, otherwise it is with it's own beat.
hope this helps
cpm