Skip to content

patsimm/datagraph-core

Repository files navigation

datagraph-core

The audio engine behind datagraph — a modular, node-based synthesizer that runs in the browser.

datagraph-core is written in Rust and compiled to WebAssembly. It provides a real-time audio graph that runs inside an AudioWorklet: you wire up nodes (oscillators, filters, envelopes, sequencers, math, and more), connect their ports, and the graph processes audio sample by sample.

Features

  • Modular audio graph with typed ports and connections
  • A library of DSP nodes: oscillators, filters, ADSR/envelopes, delay, noise, sequencer, sample & hold, crossfade, math, and more
  • Runs in the browser via AudioWorklet (WASM), and natively as a plain Rust library
  • Lock-free communication between the audio thread and the UI

Usage

Build the WASM package with wasm-pack:

npm run build

Or use it as a native Rust library — see examples/main.rs for a small example that builds a graph and ticks through it. Run it with cargo run --example main.

Related

License

GNU General Public License v3.0 — see LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages