Crates.io | glicol_synth |
lib.rs | glicol_synth |
version | 0.13.5 |
source | src |
created_at | 2022-09-04 18:14:59.675715 |
updated_at | 2024-04-23 16:47:27.726301 |
description | A graph-based music DSP library written in Rust |
homepage | |
repository | https://github.com/chaosprint/glicol.git |
max_upload_size | |
id | 658381 |
size | 210,185 |
glicol_synth
is the audio engine of glicol computer music language.
It can be used as a standalone audio library, with quite intuitive APIs:
use glicol_synth::{AudioContextBuilder, signal::ConstSig, Message};
fn main() {
let mut context = AudioContextBuilder::<16>::new()
.sr(44100).channels(1).build();
let node_a = context.add_mono_node(ConstSig::new(42.));
context.connect(node_a, context.destination);
println!("first block {:?}", context.next_block());
context.send_msg(node_a, Message::SetToNumber(0, 100.) );
println!("second block, after msg {:?}", context.next_block());
}
glicol_synth
begins with a fork of the dasp_graph
crate, written by @mitchmindtree.
many features and contents are added:
See the examples on GitHub for the basic usage.