Lurker News

Comments (132) 57 threads

Show all comments

Showing thread 1 of 57

JonnieCache6 replies#
This isn't really a DAW. For those unfamiliar, a DAW is a fully-featured music creation environment including sound design, composition, recording, arrangement and mixing in one interface. Examples include logic, cubase and ableton.

While I suppose this does allow for all of those things, as much as any programming language with access to an audio API does, this would be better described as a web-based DSP livecoding environment.
Apart from the naming quibbles, it looks excellent! I wonder what's generating the sound? I'm aware of the oscillator/filter primitives in the HTML5 audio API from the minimoog google doodle, but this seems more elaborate than that.
EDIT: for fun times, load "need more 303," scroll down to the bottom, and change some of the numbers around. Setting the slide() call to 1/1024 yields a nice FM-ish sound. You can even overdrive the filter. Reach for the lasers!

fat0wl1 reply#
which controls are usable? everything i click just gives me an annoying "gimme $$" popup, haven't actually found a function that works
JonnieCache1 reply#
I just loaded some example projects, hit the play button and started changing the code. The output responded immediately.
fat0wl#
ah yah for some reason mine showed a blank file & couldnt expand projects. refreshed & its good, this is a pretty awesome project
svantana5 replies#
It seems their goal is to make a full-fledged DAW in the browser, but they are not there yet (and far from it from what I can tell). How they would be able to fund all that for $2k is beyond me.

That said, it's a really clever idea to have all the source editable, since js is an interpreted language anyway. One can imagine a future where the community not only shares songs and sounds, but the DSP units themselves. Unlike desktop DAWs, which rely on dylibs (dlls) to supply external synths and effects, a js-based DAW can load, re-compile and hotswap units on the fly.

JonnieCache1 reply#
This kind of thing has existed in desktop/native form for some years. Look up supercollider.
fat0wl7 replies#
& max/msp even included js but it operated at control rate, not audio, so you couldn't write synths directly as js

Continue this thread — 7 replies

thuuuomas#
Sharing Supercollider snippets was a thing for awhile on twitter. THE FUTURE IS NOW.
yconst#
Seems $2k is just one of their milestones...

"development is split into milestones on which the features are discussed and decided upon in the mailing list with the help of the community.
a funding campaign is then setup for each next milestone which supports development and keeps the project up and alive."

chrisdevereux2 replies#
Realtime audio DSP seems like about the last thing that in-browser JavaScript was designed to do well.

Janky audio is unnacceptable in a way that janky visuals aren't. It totally kills the experience.
Without very strong guarantees about GC latency and thread scheduling that are neither available nor on the horizon for in-browser js, it won't work for anything beyond fun hacks.

chrisdevereux1 reply#
Yes, and it works by mostly avoiding realtime DSP in javascript. It provides a high-level API for wiring together prebuilt audio processing nodes. Much like using browser animation APIs vs programatic animation. My point is about the feasibility of JS signal processing, not the feasibility of using JS to glue together signal processors.

The WebAudio API does provide a ScriptProcessorNode for JS processing, but it appears to suffer from the problems I described. The spec seems to warn against using this for realtime processing, fwiw.

notthetup1 reply#
"The WebAudio API does provide a ScriptProcessorNode for JS processing, but it appears to suffer from the problems I described."

Yup. That is being worked on by W3C and the WebAudio committee as we speak. WebWorker based JS processing is something being considered.
https://github.com/WebAudio/web-audio-api/issues/113
http://lists.w3.org/Archives/Public/public-audio/2013OctDec/...
I am expecting this to be resolved in a few months. (hopefylly?)
If the threading issues are resolved, then real time audio rendering doesn't take that much processing power and can be easily done in JS.
Infact if there is nothing else contending for the EventLoop (like in this example of WavPot) the ScriptProcessorNode is able to meet the real-time guarantees pretty well, while still doing decent processing.
Also going forward, with Technologies like SIMD.js and asm.js more can be done within a single onprocess callback.

chrisdevereux1 reply#
Meeting real-time guarantees pretty well isn't good enough for a DAW. Not without a lot of buffering (and therefore latency), anyway.

The WebWorker proposal is interesting. If the worker has its own heap and realtime scheduling with a correctly configured GC, it would be a big improvement.
Getting the different implementations to work consistently enough will be challenging, though. Meeting realtime deadlines is difficult enough when working in C with a known OS and audio stack.

Continue this thread — 1 reply

CamperBob23 replies#
If you don't care about latency, and in this "DSP sandbox" application you probably don't, JavaScript is fine for real-time DSP. JS under V8 and similar engines can be quite fast.

You aren't going to digitize 100 MHz of RF spectrum and build an SDR in JavaScript, but for audio rendering work it'd be fine. Cool hack.

Continue this thread — 3 replies

squeaky-clean#
>a js-based DAW can load, re-compile and hotswap units on the fly.

REAPER does just this. It has its own audio scripting language, JesuSonic (also abbreviated JS, which can get confusing), which is interpreted. It's not incredibly popular, but people do share code and modules for it. There are some who sell VSTs/AUs/etc (dlls), but give away the same plugin in a JS format in order to support Reaper.

nnnnni1 reply#
Yeah, it's definitely cool for what it is -- but it is NOT a DAW.

I would call it the audio equivalent of OpenSCAD.

stagas2 replies#
In my head, a DAW is exactly what it says. A workstation for digital audio. That said, this has the potential to evolve to something more similar to existing professional DAWs and maybe even surpass them.

I'm glad you like it. The sound is generated purely by a JavaScript function returning sample values that are then handled by the Web Audio API and buffered. That's how you hear sound.
On edit: It's really easy to remix tracks that way, even small changes to values yield quite different results. It's fun!

vegedor#
>I'm glad you like it. The sound is generated purely by a JavaScript function returning sample values

i feel like this belongs here: https://www.youtube.com/watch?v=tCRPUv8V22o - not in a DAW kinda sense, though

tomphoolery#
> I'm aware of the oscillator/filter primitives in the HTML5 audio API from the minimoog google doodle, but this seems more elaborate than that.

An oscillator and a filter modulator are pretty much all you need to create this particular app. There's no reverb, and any delay effects are being "hard-coded" with simple degrading velocities. All synthesizers are built from these ultra-simple components, maybe 2 or 3 more and you have everything you need to build a digital synth purely with web technologies.

sunpazed1 reply#
This is awesome!

I'll certainly contribute to this. Will the source be opened up?
Here's a delay filter:

  var delay_array = [];
  var delay_length = 5;
  var delay_feedback = 0.6;
  var delay_volume = 0.4;

  function delay(x) {

    y = 0;

    if (delay_array.length < (delay_length * 1000)) {
      delay_array.push(x);
    } else {
      y = delay_array.shift();
      delay_array.push(x + (y*delay_feedback));
    }

    return (x) + ( y * delay_volume );

  }
Include this in the DSP return code, ie;

  return delay(synth);
Zubedar1 reply#
Yes that's a good delay filter but it's also a good example why this type of user-programmable synth apparatus, which looks similar to CSound, won't catch on. There is much more going on in the typical delay sound itself than just a delayed iteration of a sample. A pure delay is boring. There is the possibility to model all kinds of analog and hardware digital delays with additional coding, but people have been doing that for years and it's no surprise really that commercial companies do it best (and they won't bother unless there's a way to protect proprietary code such as VST).
stagas1 reply#
There's more to digital audio processing than code? I don't get it. Once the collaborative module system is in place (see milestone I) it'll allow for more complex stuff, as you'd be joining components and moving upwards in the abstraction levels, I don't see how big companies can compete with that.

Continue this thread — 1 reply