Overview

We want to be able to run the expressions in the browser and visualise the “serial” connections directly, without any interop with the module other than syncing clocks and inputs.

Module’s responsibilities

WASM Interpreter’s responsibilities

Editor’s responsibilities

Editor state


const numChannels = 8; // s1 through s8
const numSamples = 1024; // change to whatever

let windowDur = 5000; // milliseconds
let windowStart = 0;
let windowEnd = windowStart + windowDur;