3 ms·
4kb the notes, 15kb the js code, 40 Mb of other JS libs? Edit: Oh and 2 Gb of samples.
by nottorp 4y ago
4kb the notes, 15kb the js code, 40 Mb of other JS libs?
Edit: Oh and 2 Gb of samples.
- skrebbel 4y ago> Edit: Oh and 2 Gb of samples. You're just pulling this out of your ass. There are no samples. All the sounds are actually generated by the 19kb of JS + the dittytoy API which provides a pretty low-level set of helpers to build synths and sequence notes. I can't figure out how big/small the dittytoy API is but 40MB or 2GB are both ridiculous.
- reindernijhoff 4y agoThe dittytoy API is 57.4kb, so including the source of this ditty, everything fits < 80kb. No samples or webaudio filters are used. Everything (the whole sound wave) is generated in code.
- detrites 4y agoWhere on earth did you get the last two numbers? The total network download for the entire page, including GUI, images, fonts, google tracking BS and everything else, is only 536KB. The track will then play in full, offline.