Cowbell - a universal web audio widget for scene music
category: code [glöplog]
You could cache the zip contents of the last X files on the server and then send individual extracted files? I suppose it should have enough storage for that? :)
saga musix: if you're going the cache way i'd rather go through the entire archive and process it to extract all convenient metadata to have it ready for preview.
gargaj: shouldnt all demo preview screenshots be linked from demozoo or pouet anyways? javascript unzip will be much slower then usual to begin with, so maybe have a size limit of 1mb or such to trigger preview mode. although i bet people will ask for mp3s to get previewed soon after. :/
gargaj: shouldnt all demo preview screenshots be linked from demozoo or pouet anyways? javascript unzip will be much slower then usual to begin with, so maybe have a size limit of 1mb or such to trigger preview mode. although i bet people will ask for mp3s to get previewed soon after. :/
You can already preview mp3s on scene.org, ex 1-800-DEMOSCENE.
ps: Screenshots were just an example to the point that very little user intent could result in disproportionate resource use, which is my main concern.
Nice!
Inspired by this, I just implemented an auto-play mode on ModArchive's online player. And a seek bar. :)
starchaser: yeah, but not when they are zipped :)
psenough, yeah, that's true...
Having written a player for the Kahvi archive once that did inspect and stream audio files directly out of zip files* because I couldn't figure out a nice automated way** to go from albums to the playlists they use, which linked to individual unpackaged files, it is a pain in the ass and likely somewhat resource intensive with enough users at once.
* I think the project was indirectly responsible for killing my server's first HDD due to being effectively a large mirror of Kahvi. Whoops. See footnote #2.
** If I did it over I'd do it differently. They also have their own album previewer on site, I figured out later.
If 4T sees this... sorry! I uh... owe you that thing for that other thing. It'll come... eventually. Some year. :(
Having written a player for the Kahvi archive once that did inspect and stream audio files directly out of zip files* because I couldn't figure out a nice automated way** to go from albums to the playlists they use, which linked to individual unpackaged files, it is a pain in the ass and likely somewhat resource intensive with enough users at once.
* I think the project was indirectly responsible for killing my server's first HDD due to being effectively a large mirror of Kahvi. Whoops. See footnote #2.
** If I did it over I'd do it differently. They also have their own album previewer on site, I figured out later.
If 4T sees this... sorry! I uh... owe you that thing for that other thing. It'll come... eventually. Some year. :(
starchaser: one of the reasons why on enough i upload the releases as both album.zip and individual mp3s is to be able to stream them from player.
By the way - libopenmpt size results also very much depend on the emscripten version used - I just recompiled the latest emscripten version today ("./emsdk install latest"), and even with tons of new features added recently (MO3 decoding, DMO plugin emulation), the new gzipped version is a few dozen KB smaller (616 KB) than older ones.
Very nice. But why does toggling the developer tools in Firefox make the playback freeze and then resume, on every other toggle?
Great work! I personally couldn't care less about downloading 600KB in order to not having to download (& convert) the original file before playing, or in order to not having to download a pre-converted 2-3MB mp3
raina: Because browsers suck when it comes to real-time playback.
What v3nom said.
Most of the time I have an itch for a specific tune I go to youtube, which probably downloads 10s of MB of video just so I can hear the tune.
Last time I checked we're no longer in 1996.
Anyway. To all those who made this possible, good work!!
Most of the time I have an itch for a specific tune I go to youtube, which probably downloads 10s of MB of video just so I can hear the tune.
Last time I checked we're no longer in 1996.
Anyway. To all those who made this possible, good work!!
Version 0.2 released, now with added SVG-fu for nicer UI controls.
RULEZ!
In a not-really-shock move, Cowbell is now in action on Demozoo serving up lots of in-browser audio goodness! It's hooked up to play streaming stuff from scene.org, tracked stuff from Modland and ModArchive, and Speccy stuff from zxdemo.org. (With surely more to come in future.) Enjoy...
Very good! It would be great to add Cowbell support to modules hosted in AMP. Or, perhaps, to any direct link to a file in a supported format.
Quote:
Or, perhaps, to any direct link to a file in a supported format.
Not really feasible since the website from which the module is loaded must send some cross-origin resource sharing headers (i.e. your browser, while being on demozoo, cannot just go anywhere and get files from wherever it pleases).
Nice!
Aweseome! But why not tracked/chips from scene.org also?
... and could Demozoo embedd Soundcloud?
... and could Demozoo embedd Soundcloud?
Quote:
Most of the time I have an itch for a specific tune I go to youtube, which probably downloads 10s of MB of video just so I can hear the tune.
Which you shouldnt need to do, since the audio is streamed from a separate M4A-File:
http://keepvid.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfH-kH9r0s0Q
Version 0.3 is here...
* Safari compatibility
* Upgraded libopenmpt to version 0.3.0-pre.2+r7430
* Support for the .sqt (ZX Spectrum SQ-Tracker) file format
* A faster .stc (ZX Spectrum Soundtracker) decoder, created using static analysis of the original Z80 routine and semi-automated Z80-to-JS transpilation. Which was probably a total sledgehammer-to-crack-a-nut thing, but it was a cool project to work on. Because DEMOSCENE, MOTHERFUCKERS.
* Safari compatibility
* Upgraded libopenmpt to version 0.3.0-pre.2+r7430
* Support for the .sqt (ZX Spectrum SQ-Tracker) file format
* A faster .stc (ZX Spectrum Soundtracker) decoder, created using static analysis of the original Z80 routine and semi-automated Z80-to-JS transpilation. Which was probably a total sledgehammer-to-crack-a-nut thing, but it was a cool project to work on. Because DEMOSCENE, MOTHERFUCKERS.
you crazy!
Just released 0.4, which most excitingly adds .sid file support, courtesy of JSSID by Hermit, as well as updating to the latest libopenmpt and fixing a bug in .psg playback.
linky
(You can also check it out on Demozoo, where the .sid support has been put through its paces for the last couple of weeks)
linky
(You can also check it out on Demozoo, where the .sid support has been put through its paces for the last couple of weeks)