I\'m trying to sync animation to music at a specific BPM. I\'ve tried using the Timer but it isn\'t accurate when dealing with small intervals in milliseconds. I did some re
This is very tricky to get right! There's a small lib called BeatTimer that tries to do this. I haven't tried this code myself, but if it does what it claims it should be exactly what you need.