Closed klesun closed 8 years ago
I've got a solution! Just slow down tempo... maybe 8x - so that smallest possible interval was 1 second... nda. Maybe better slow down 12x (or 6x... 1/4/3 * 6 = 1/2 = 2 seconds) so triplets were good too
The last solution is lame primarily because firefox, for example, does not handle timeouts of inactive tabs at all. What probably will be good - stop playback when tab looses the focus and continue when focus returns.
probably one day i'll do an optional checkbox for workers instead of setTimeout
c4f3477c6c84e9bb9c1139790ea0a173a966bf3e
Because Chrome has one setTimeout() per second limitation. Probably try workers? http://stackoverflow.com/questions/5927284/how-can-i-make-setinterval-also-work-when-a-tab-is-inactive-in-chrome/5927432#12522580