Weird - I've had this one on my list of things to make for about a year - I got a bit of a start, then other things took over.

Don't know if this helps, but HERE is a BASIC program that I was going to try to convert.

If I get going on this again, I'll keep you updated - and please let me know how you're doing with it too.

Andy