Showing posts tagged javascript

accurateInterval()

Developing the MandalaTron presented a problem.  Syncing visual timings with music required accuracy.  And that was accuracy that setTimeout() did not have.

Enter accurateInterval(). It schedules each successive run by comparing the curent time with the expected time that it should run next, ensuring that it stays as in-sync permanently.

MandalaTron

I’ve been experimenting with using HTML Canvas to create procedural rhythmic art.  And I am pretty pleased with the result.

(Safari and Firefox seem to have the best performance, sadly Chrome seems to struggle to keep the same framerates)