DSP2JS - A C++ framework for the development of in-browser DSPs
summary
Framework ports C/C++ DSP to the browser by compiling to WebAssembly with Emscripten + WebAudio API and a three-step input: C++ binding class, JSON descriptor, and Makefile. Build produces a JS node file and an audio worklet + WASM processor that handle buffer conversion, runtime profiling and parameter bindings and generates .node and .processor JS files. Live demo builds a custom gain node, runs in the page, responds to parameter changes, and supports an optional bare-build mode for non-WebAudio use.
AI-written summary · about
chapters (8)
- 0:00Introduction to DSP2JS
- 1:50Framework overview and workflow
- 3:40Live coding demo setup
- 4:01Writing C++ binding code
- 8:05Creating JSON descriptor file
- 9:15Building with Makefile
- 10:41Using generated JavaScript nodes
- 12:09Demo and conclusion
related talks
24mAmp Up Web Audio Applications with Rust and WebAssembly
39mBringing the power of C++ to the web
34mBack to the FUTURE! From C++ to JS
52mWebAssembly: Taking Your C++ and Going Places
16mEssentia in the browser
36mPractical WebAssembly
57mC++ on the Web: Let's have some serious fun.
27mWebAssembly and Node.js
