Settings

Theme

Show HN: Web Audio DSP Playground

acarabott.github.io

126 points by acarabott 8 years ago · 45 comments

Reader

btown 8 years ago

Audio Worklet https://developers.google.com/web/updates/2017/12/audio-work... is way, way cooler than these demos imply, as it actually gives you a high-priority digital signal processing thread separate from the UI thread. And because it can benefit from WebAssembly, it's only a matter of time before the power of native audio applications is ported to the browser.

This thread https://forum.juce.com/t/juce-plugins-in-webassembly/25255 , particularly the demo here https://webaudiomodules.org/demos/wasm/dexed.html (try using the ZXCV row on your keyboard) are incredibly promising, as they're straightforward ports of real synthesizers.

Other comments have mentioned that this is coming to Firefox as well; core contributors on the media team have been discussing how it's a priority as recently as two days ago: https://bugzilla.mozilla.org/show_bug.cgi?id=1062849

Really exciting times for the web audio space!

droidist2 8 years ago

This is pretty sweet. It'd be cool to have more examples though like square wave, triangle wave, etc. and maybe some simple effects like tremolo.

kevincennis 8 years ago

Would be a cool addition to let users upload an mp3 and then act on it with the AudioWorklet to do stuff like bit crushing.

jtbayly 8 years ago

Only available on Chrome and only versions 66 and up.

  • shams93 8 years ago

    For cutting edge html5 we have no choice but the latest chrome. Audio worklets? Webmidi? Even though I prefer Firefox they're not moving at the same rate as chrome, no one is when it comes to things like audio worklets.

  • Jyaif 8 years ago

    bug tracking implementation of missing feature in FF: https://bugzilla.mozilla.org/show_bug.cgi?id=1062849

    Yes, it's 4 years old.

    • reklawnos 8 years ago

      To be clear, that bug originally tracked the implementation of the Audio Worker API, which went through many iterations that eventually led to the current Audio Worklet spec.

  • sgt 8 years ago

    Just relaunch your browser, it should update automatically.

    • jstimpfle 8 years ago

      To state the obvious, not everybody has Chrome, and not everybody has or wants the newest version. That's how it should be. By implying that it's ok to assume otherwise, you're (probably unknowingly) harming the community.

      • elvinyung 8 years ago

        Dumb (but genuine) question: why is it good that not everyone wants to be in the new version?

        • zitterbewegung 8 years ago

          It hasn’t passed certification by your IT departments employer

        • jstimpfle 8 years ago

          Just try not to presuppose more than is required. I might be unhappy with the newest version. Or, my device can't be updated due to technical or polital reasons. Or, the newer version does not work or is not available for my hardware or operating system. Or, I might actually be on a fork (or fake) of the software that isn't up-to-date yet. You see, there are tons of reasons...

          • sgt 8 years ago

            In Chrome's case, I believe it auto updates. So you don't really have a choice unless you actively try to disallow it or switch of auto-updates.

            • jstimpfle 8 years ago

              So I do have a choice, right? HN is a pretty technical forum -- not normally a place for ignorant-consumer type viewpoints (no offense intended). Case in point, my version of "Chrome" (chromium on Debian) does not auto-update (I think so - It's the normal way on Debian, although I don't really use chromium but firefox).

              • jcims 8 years ago

                Why don’t you go ahead and restate what sgt said in a way that wouldn’t have set you off on this needlessly perjorative tangent.

                • jstimpfle 8 years ago

                  Sorry, I'm just bad at leaving posts below my own ones unanswered. But actually I explained exactly what I thought was wrong with that (sgt's) comment and why I supposed it had been downvoted. I don't think there is a way of restating it -- OP has a perfectly valid point that does not need "nothing is wrong, just restart or install this thing that everybody needs to have" type rebuttals.

  • spookthesunset 8 years ago

    > Only available on Chrome and only versions 66 and up.

    Lame. You are in a tech forum with techies and you are complaining about having to run the latest & greatest. How is this constructive?

    Sometimes you need to run the newest stuff in order to, you know, use the newest stuff. As a techie, you should know that, right?

    The alternative would be flash, but then you couldn't have done this demo....

emilfihlman 8 years ago

Getting an error of "The AudioContext was not allowed to start. It must be resume (or created) after a user gesture on the page. https://goo.gl/7K7WLu".

indescions_2018 8 years ago

This is awesome. Sounds quite in tune at 440 Hz (A4). Could be the beginning of a DAW for Chrome ;)

wi24rd 8 years ago

Only available in Chrome 66+, and why do you submit it twice in a week?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection