Live data from Hacker News

The DaftPunKonsole

codepen.io

21–30 of 33 posts

Re: The DaftPunKonsole

#22
post #2

This is super fun to play with, but the delay between the key press and audio playback is killing me. Are the sounds loaded into a buffer? Perhaps this is the best latency you can get with Web Audio (on Linux). Also, the semicolon key is not working for me. A fun toy nonetheless!

> Also, the semicolon key is not working for me. A fun toy nonetheless!

on my keyboard, I have a "ñ" key there. It would be awesome if you could use keys "hjkl" instead.

Re: The DaftPunKonsole

#23

Your hot-linking cross domain made this impossible to try, as I block this. Please serve your javascript directly, even if it is a third party library. Additionally, the "Over" button (;) does not work for me for whatever reason. Firefox 30.

Yeah the JSON file with key mappings (http://s.cdpn.io/190177/keyboard_.json) appears to have an incorrect mapping for ';'.

It says 186, but console.log(code) returns 59 for me. If I update the javascript to replace the 186 with 59 the sound will play, but to get proper CSS effects I think the JSON file needs to be corrected.

Re: The DaftPunKonsole

#24
post #21

Clearly built for nerds, but no DVORAK option? Come on.

It's a gap in the web platform that there's no solid cross-browser way to automatically adapt these sorts of control layouts to the user's actual keyboard layout. :( I type Dvorak too, and just have to switch to qwerty for certain games and things like this (both web and native).

Re: The DaftPunKonsole

#25
post #21

Clearly built for nerds, but no DVORAK option? Come on.

I don't see why you'd say it's "clearly for nerds", it seems to be "clearly for Daft Punk fans" and since they're french you can use the french keyboard layout soo their french fans can play with it.

Re: The DaftPunKonsole

#26
This kind of reminds me of some site that made the rounds maybe 2 years ago: It used percussive type sound samples and full screen animations for each keypress. I can't seem to remember what it was called. Does anyone know what I'm talking about?

Re: The DaftPunKonsole

#27
post #22
post #2

This is super fun to play with, but the delay between the key press and audio playback is killing me. Are the sounds loaded into a buffer? Perhaps this is the best latency you can get with Web Audio (on Linux). Also, the semicolon key is not working for me. A fun toy nonetheless!

> Also, the semicolon key is not working for me. A fun toy nonetheless! on my keyboard, I have a "ñ" key there. It would be awesome if you could use keys "hjkl" instead.

The ñ key works for me!

Re: The DaftPunKonsole

#28
post #21

Clearly built for nerds, but no DVORAK option? Come on.

It's a gap in the web platform that there's no solid cross-browser way to automatically adapt these sorts of control layouts to the user's actual keyboard layout. :( I type Dvorak too, and just have to switch to qwerty for certain games and things like this (both web and native).

Isn't that what http://www.w3.org/TR/DOM-Level-3-Events/#keys-codevalues is for?

Hmm, caniuse doesn't seem to have it, I'll have to look for info.

Edit: ah, and looks like Fx38 will be the very first to have it. https://bugzilla.mozilla.org/show_bug.cgi?id=1126673

Re: The DaftPunKonsole

#29
post #13
post #2

This is super fun to play with, but the delay between the key press and audio playback is killing me. Are the sounds loaded into a buffer? Perhaps this is the best latency you can get with Web Audio (on Linux). Also, the semicolon key is not working for me. A fun toy nonetheless!

This will probably be about as responsive as this can get without a low latency audio driver. At least on Windows, this is similar to the latency when using a MIDI keyboard and a DAW with non-ASIO/WaveRT audio drivers. I think for Linux the analogue would be higher-latency with PulseAudio than with JACK.

[deleted]
Post reply on HN