dsp-chain
A library for chaining together multiple audio dsp processors/generators, written in Rust!
Use cases for dsp-chain include:
- Designing effects.
- Creating an audio mixer.
- Making a sampler.
- Writing a dsp backend for a DAW.
- Any kind of modular audio synthesis/processing.
Documenation
Usage
Here's what it looks like:
// Construct our dsp graph.
let mut graph = new;
// Construct our fancy Synth and add it to the graph!
let synth = graph.add_node;
// Add a few oscillators as inputs to the synth.
graph.add_input;
graph.add_input;
graph.add_input;
// Set the synth as the master node for the graph.
// This can be inferred by the graph so calling this is optional, but it's nice to be explicit.
graph.set_master;
// Request audio from our Graph.
graph.audio_requested;
Here are two working examples of using dsp-chain to create a very basic synth and an oscillating volume.
Add dsp-chain to your Cargo.toml dependencies like so:
[]
= "*"