133 points · by janesconference · 8y ago · 47 comments
— Please note that the app runs only on Chrome > v66, for now, because Chrome is the only browser implementing the Audio Worklet[1] spec. Other browser will follow suit (hopefully) soon
[1] https://developers.google.com/web/updates/2017/12/audio-work...
Midi in is not supported yet, i.e. you can't press a key on your connected MIDI keyboard to send a MIDI message to the worklet yet. You can simulate it with the keyboard on the left. Quoting the Help page (accessible with the "?" button on the top right):
"The MIDI IN keyboard will send MIDI messages to the worklet's MessagePort. Messages are objects of the form {type: ['noteon' | 'noteoff'], value: { note, octave, midi, frequency } }"
Using physical MIDI controls will be supported in future releases, though.
[0] https://github.com/colinbdclark/osc.js/
[1] https://hexler.net/software/touchosc
BONUS OSC STUFF:
* https://github.com/sebpiq/rhizome
* https://github.com/attwad/python-osc
* https://github.com/thomasfredericks/UnityOSC
These are a bunch of demos: https://googlechromelabs.github.io/web-audio-samples/audio-w...
For anyone interested on the stack, the visual part is React / Redux SPA. I use Firebase's Firestore as a DB (I wanted to try it and so far it's really cool) and Google Cloud Functions for the APIs. The repo is hosted on Gitlab and is a Lerna monorepo, which is amazing.
> Publication as a Working Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
> — Please note that the app runs only on Chrome > v66, for
> now, because Chrome is the only browser implementing the
> Audio Worklet[1] spec. Other browser will follow suit
> (hopefully) soon
[1] https://developers.google.com/web/updates/2017/12/audio-work...
Any chance of adding a piano roll for playing short melodies(and perhaps chords with the proper processor)?
I especially like that you've included a share mechanism. I built an audio dsp playground before, but didn't spend enough time on it to provide that.
Are you going to add a discovery page to browse people's creations?
This particular app is meant more as a playground / sketch / sharing tool for DSP techniques, and imho it makes sense for it to be on the most immediately accessible platform, the Web.
However, it's possible to add Faust or C support to it in the future (using WebAssembly), a feature which will allow exporting your snippets directly to executable / VST.
It could be compiled with a webassembly backend and loaded, but... you could almost copy/paste the process() js function into c++ and it would compile, almost.
Nice, I have thought about this before! Got a link?
Can somebody ELI5 to me, what this is about? Or point me in the right direction perhaps.
This application allows you to write, test and save / share them. The idea is to have an online playground to share DSP code, like a sort of JSFiddle, but for audio.