Module sorceress::synthdef [−][src]
Core types for creating synth definitions.
Synth definitions are used by SuperCollider to create new synths. Synth definitions are formed from directed acyclic graphs (DAGs) of UGens. UGens are primitives offered by SuperCollider that generate and process sound.
Examples
use sorceress::{ synthdef::SynthDef, ugen::{Out, Pan2, SinOsc}, }; let synthdef = SynthDef::new("example", |params| { let freq = params.named("freq", 440.0); let pan = params.named("pan", 0.0); Out::ar().channels(Pan2::ar().input(SinOsc::ar().freq(freq)).pos(pan)) });
Modules
decoder | A synth definition file format decoder. |
encoder | Serializes synth definitions into the format accepted by SuperCollider. |
Structs
Parameter | A synth definition parameter. |
Parameters | A factory for creating parameters in a synth definition. |
SynthDef | A named synth definition. |
Value | A value in a UGen graph. |
Enums
DoneAction | An action to invoke when a UGen is finished playing. |
Traits
Input | A trait for values that can be used in UGen graphs. |