For example:
This was really just a lesson bash for me than anything else. If you feel like it would be useful then you can download it here../bpm
Enter bpm: 120
EVEN
1/1: 500 ms
1/2: 250 ms
1/4: 125 ms
1/6: 83 ms
1/8: 62 ms
1/10: 50 ms
1/12: 41 ms
1/14: 35 ms
1/16: 31 ms
ODD
1/3: 166 ms
1/5: 100 ms
1/7: 71 ms
1/9: 55 ms
1/11: 45 ms
1/13: 38 ms
1/15: 33 ms