HNHacker News
TopNewBestAskShowJobs

warenhor

132 karma · joined February 25, 2020

submissionscomments
warenhor··on Bongo Cat
Indeed, I forgot to define `e` on the same line, cheers.
warenhor··on Bongo Cat
In case you want (like me) to share your best art with you colleagues:

let e = $.Event('keyup'); '09090586 '.split('').map((k, i) => {setTimeout(()=>{$.play(InstrumentPerKeyEnum[k],k,e.type==="keydown")}, i * 200); setTimeout(() => {$.play(InstrumentPerKeyEnum[k],k,e.type==="keyup")}, i * 250)});