Skip to main content

Crate rill_core_dsp

Crate rill_core_dsp 

Source
Expand description

§Rill Core DSP

Core DSP abstractions and algorithms for the Rill ecosystem.

§Modules

  • algorithm — DSP algorithm trait (Algorithm, ParameterizedAlgorithm) and categories
  • context — DSP context with sample rate, block size, and time info
  • filters — Filter trait and types (Biquad coefficients, MoogLadder, etc.)
  • generators — signal generators (WavetableOscillator, SamplePlayer, LFO, Envelope, Noise)
  • mapping — control mapping strategies
  • math — extra math utilities
  • smoothing — parameter smoothing (ParamSmoother)
  • vector — SIMD vector abstractions
  • macros — macros for algorithm-to-node conversion and prelude

§Features

  • Full type parameterization (f32/f64) via Transcendental
  • RT-safe buffers with const generics
  • SIMD acceleration behind simd feature flag

Re-exports§

pub use context::DspContext;
pub use filters::Filter;
pub use filters::FilterParams;
pub use filters::FilterType;
pub use generators::EnvelopeGenerator;
pub use generators::Generator;
pub use generators::InterpolatedReader;
pub use generators::LoopMode;
pub use generators::NoiseGenerator;
pub use generators::Resampler;
pub use generators::SamplePlayer;
pub use generators::WavetableOscillator;
pub use generators::LFO;

Modules§

algorithm
DSP-specific parameter types and re-exports.
analyzer
Traits for signal analyzers
context
DSP algorithm execution context
effect
Traits for effects
filters
Basic filters for audio processing
generators
Signal generators
macros
Macros for creating DSP algorithms
mapping
ControlMapper — maps normalized [0, 1] control values to parameter ranges.
math
Mathematical abstractions and utilities for DSP
prelude
Prelude for convenient imports
smoothing
ParamSmoother — one-pole smoother that implements Algorithm<T>.
vector
Vector operations for DSP

Macros§

effect_algorithm
Macro for creating an effect with dry/wet mix
filter_algorithm
Macro for creating a filter with coefficients
generator_algorithm
Macro for creating a generator
parameterized_algorithm
Macro for creating a parameterized algorithm
simple_algorithm
Macro for creating a simple algorithm without parameters

Traits§

ParameterizedAlgorithm
An Algorithm with typed, settable parameters.