Peter, I have done a lot of work in that area. I found a math formula for figuring out what echo setting would give me quarter notes for a particular tempo of song. It's the only use for algebra I have found since high school:
MilliSeconds = 60 / BeatsPerMinute
500ms = 60 / 120 BPM
If you are working with a sequencer, this will make life a lot easier.