Now playing sound according to patterns only when they are near the cursor. We only need to have something with fixed fps to be sure this program works.