Hacker Newsnew | past | comments | ask | show | jobs | submit | jigneshhk's commentslogin

When you unfocus the tab drum beats produces different sound. Is it a feature or bug?


I think it is more how any JS script works, Chrome and Firefox (at least) slow down the process (for CPU consumption, to save battery... etc). Since that script is working using a setInterval to look ahead, he needs to wrap the setInterval in a Web Worker, so that thread is never runned slowly.


It's how WebAudio works. If the tab loses focus, the callbacks to the Audio Thread are throttled so the sequencing might be a bit messed up.


Pull the tab into a new window and you can then layer sounds.


Awesome stuff. I would advise you to prominently display information about what all browsers it supports.


Good idea, thanks. In the meantime, I've successfully testing it in IE10+, Chrome (OS X and Android), Firefox, Safari 6+ and mobile Safari. Basically it should work in any browser that supports CSS transforms, though I haven't got round to adding vendor prefixing for the benefit of IE9.


Awesome loving it!


Updated!. Thanks devx for feedback.


They are changing UI. I guess.


He just jump out of the water like that?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: