devalang 0.2.0

Write music with code. Devalang is a domain-specific language (DSL) for sound designers and music hackers. Compose, automate, and control sound — in plain text.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::fmt::Debug;

/// Trait for all effect processors
pub trait EffectProcessor: Send + Debug {
    /// Process audio samples (stereo interleaved)
    fn process(&mut self, samples: &mut [f32], sample_rate: u32);

    /// Reset effect state
    fn reset(&mut self);

    /// Get effect name
    fn name(&self) -> &str;
}