№
5680
1
can't you take a hint.jpg
(16.68KB, 480x366)
%3Ca%20href%3D%22%2Fbtb%2Fsrc%2F1742263598576-0.jpg%22%20onclick%3D%22return%20expandFile%28event%2C%2056800%29%3B%22%3E%3Cimg%20src%3D%22%2Fbtb%2Fsrc%2F1742263598576-0.jpg%22%20width%3D%22480%22%20style%3D%22max-width%3A%20100%25%3B%20height%3A%20auto%3B%22%3E%3C%2Fa%3E
One thing I've noticed about Greggman's HTML5 Bytebeat is that instead of simply setting
window.location.hash
(which would add a new entry to the history), it uses
window.location.replace()
to change the URL without adding a new history entry. This method updates the URL without creating additional entries in the browser's history stack, whereas Dollchan does
window.location.hash=`#v3b64${btoa(String.fromCharCode.apply(undefined,deflateRaw(JSON.stringify(songData)))).replaceAll("=","")}`;
every time you type a character which is annoying ('cause it floods your history). Besides, there's also
window.history.replaceState(null,"",URL)
…
On the other hand, could there ever be MIDI/keyboard input for playing notes in real-time? Or the ability to import audio samples (could also be raw data too for any arbitrary file) being read as arrays without having to encode them into massive strings? Maybe even microphone input for implementing effects?