Notes on Live.JS at JSConf.Asia 2016

I had sketched some ideas for the Web Audio Hackday before flying to Singapore, but I really had to finish them before the actual day came. So I spent Friday doing an intense labour of testing, testing and more testing with the latest versions of the browsers that implement MediaRecorder. Since I was on the business of talking and promoting this API, I was determined to get more people to try it out, but that meant that I needed to be prepared for the "surprises" that working with new and upcoming APIs entail. Namely, that what worked yesterday might not work anymore, and what didn't might have started to work without prior warning.

That said, my infinitely curious self would not resist flying to such a beautiful city as Singapore and not exploring a little bit of it: I squeezed some time out of the morning to visit the Marina Bay gardens, which again I found baffling (botanical gardens which are cooled down instead of heated!), then did a lot of work, and then later in the afternoon I went to the CSS Conf/JS Conf venue, as Live.JS was going to happen.

And "What is Live.JS?", you might be wondering. Basically it's a collective that is dedicated to making audio visual shows using JavaScript. JavaScript!!! It's a bunch of people, but that doesn't mean that you will always get the same people in each "show". In this case, it was

  • Matt McKegg, which would play music using his own Loop Drop instrument for live performances. He built it using Google Web Apps initially, then migrated to Electron when GWA was starting to stagnate. He uses two Novation launchpad controllers, and the sound generation itself is via Web Audio. And it is really impressive, if you ask me!
  • Ruth John, who was VJing. Not sure what the name of her software is, but she makes heavy use of CSS variables (to animate stuff), SVG to draw elements on screen, and of course Web Audio's Analyser nodes to modify the values of variables, in response to the music being played. Also, Web MIDI so she can use external MIDI controllers to do things such as change layer opacities and switching between effects at the turn of a knob, etc.
  • Martin Schuhfuss, who was controlling the lights in the venue using the DMX512 protocol (which happens to be a close MIDI relative) and a Monumental Hack with CSS property interpolation to run light animations: colour, rotation, focus, etc. This was quite impressive to hear!
https://twitter.com/supersole/status/802098273808855041

I personally I'm a big fan of Matt's music since I saw him live in CampJS, so I was excited about this event. And of course, I was quite intrigued about the visual side of things. Hearing about the techniques underneath made me giggle and be in awe at the same time: "can't this be done in a better, proper way, or are these hacks just used for the sheer pleasure of subverting the original purpose of the technology?", I wondered.

In the meantime, "special cocktails" were served---although they were actually called "codetails" in the leaflet:

  • ES4: Old Fashioned
  • jQuery: Rum Punch
  • Outsourced: Curry and tonic
  • Unicode: Unicorn tears (non-alcoholic)
I had "a jQuery" as it seemed the sweetest of the punch, and chatted around with a bunch of people, then went and admired Matt's total LoopDrop skills, and wondered again if I'd ever understand how it works for reals.

https://twitter.com/supersole/status/802107479538561024

Then I focused my attention on what the lights were doing: many things. I guess my issue was exactly that: they were doing many things, and I was kind of expecting some sort of carefully built progression which would not happen, because the LiveJS people had just met a day or two ago, and Martin had only had access to the light equipment the same day, because obviously you don't travel from Germany with a rack of professional light equipment. So there's only so much you can prepare, and given that Matt's music is so improvisational, I should probably not expect a heavily synchronised audiovisual show. Still, I couldn't but admire two facts:

  • a browser was interpolating between CSS values and ultimately this was generating MIDI commands that caused spotlights to move and change colours.
  • that the DMX512 standard did indeed work well enough that he could just show up and control DMX512 lights with his software, without further changes
That was super cool!

People often fixate in the business value of JavaScript, but it's important to also consider JavaScript as a creative medium which has lots of potential expressivity and also reach by virtue of being online. I'm glad that Live.JS exists to inspire and support this, and I'd love to see even more exploration in this field. Bring it on! 🤘🏼

Here's the video of this event:

https://www.youtube.com/watch?v=s3fsRnFfyuo