pouët.net

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. :/
added on the 2016-04-12 23:06:28 by psenough psenough
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.
added on the 2016-04-13 00:06:48 by Gargaj Gargaj
Nice!
added on the 2016-04-13 00:23:57 by numtek numtek
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 :)
added on the 2016-04-13 01:26:16 by psenough psenough
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. :(
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.
added on the 2016-04-14 18:47:23 by psenough psenough
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?
added on the 2016-04-15 10:25:01 by raina raina
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
added on the 2016-04-15 11:34:36 by v3nom v3nom
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!!
added on the 2016-04-15 16:24:01 by BarZoule BarZoule
Version 0.2 released, now with added SVG-fu for nicer UI controls.
added on the 2016-04-24 23:54:33 by gasman gasman
RULEZ!
added on the 2016-04-24 23:56:53 by p01 p01
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...
added on the 2016-05-16 23:18:18 by gasman gasman
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.
added on the 2016-05-17 00:09:20 by ham ham
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!
added on the 2016-05-17 02:35:26 by cxw cxw
Aweseome! But why not tracked/chips from scene.org also?

... and could Demozoo embedd Soundcloud?
added on the 2016-05-17 03:56:24 by Salinga Salinga
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:

BB Image

http://keepvid.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfH-kH9r0s0Q
added on the 2016-05-17 03:59:59 by Salinga Salinga
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.
added on the 2016-11-28 23:03:57 by gasman gasman
you crazy!
added on the 2016-11-28 23:14:12 by psenough psenough
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)
added on the 2017-08-12 00:56:45 by gasman gasman

login