pub enum AudioNodeType {
Show 34 variants
Oscillator {
waveform: Waveform,
frequency: f32,
detune_cents: f32,
},
Noise {
color: NoiseColor,
},
SamplePlayer {
clip_id: u32,
loop_start: f32,
loop_end: f32,
loop_mode: LoopMode,
},
Wavetable {
table_id: u32,
morph: f32,
frequency: f32,
},
KarplusStrong {
frequency: f32,
decay: f32,
brightness: f32,
},
FmOscillator {
carrier_freq: f32,
mod_freq: f32,
mod_index: f32,
waveform: Waveform,
},
Additive {
fundamental: f32,
partial_gains: Vec<f32>,
},
BiquadFilter {
filter_type: FilterType,
frequency: f32,
q: f32,
gain_db: f32,
},
LadderFilter {
cutoff: f32,
resonance: f32,
drive: f32,
},
FormantFilter {
vowel_a: f32,
vowel_b: f32,
blend: f32,
},
CombFilter {
delay_time: f32,
feedback: f32,
feedforward: f32,
},
Adsr {
attack: f32,
decay: f32,
sustain: f32,
release: f32,
},
MultiStageEnvelope {
breakpoints: Vec<(f32, f32)>,
loop_start: Option<usize>,
},
Lfo {
waveform: Waveform,
frequency: f32,
amplitude: f32,
phase: f32,
},
SampleHold {
rate: f32,
},
Delay {
delay_time: f32,
feedback: f32,
wet: f32,
},
Reverb {
room_size: f32,
damping: f32,
wet: f32,
},
Chorus {
voices: u32,
rate: f32,
depth: f32,
wet: f32,
},
Compressor {
threshold_db: f32,
ratio: f32,
attack_ms: f32,
release_ms: f32,
},
Distortion {
mode: DistortionMode,
drive: f32,
},
Panner {
pan: f32,
},
Gain {
gain_db: f32,
},
Limiter {
ceiling_db: f32,
release_ms: f32,
},
StereoWidener {
width: f32,
},
BitCrusher {
bits: u32,
downsample: u32,
},
PitchShift {
semitones: f32,
},
RingModulator {
carrier_freq: f32,
mix: f32,
},
AutoWah {
sensitivity: f32,
speed: f32,
min_freq: f32,
max_freq: f32,
},
Mixer {
gains: Vec<f32>,
},
Crossfade {
blend: f32,
},
Constant {
value: f32,
},
Meter,
MathOp {
op: AudioMathOp,
},
Output {
volume: f32,
},
}Expand description
All supported audio node types in the processing graph.
Variants§
Oscillator
Basic oscillator (sine, square, saw, etc.).
Noise
White/pink/brown noise.
Fields
color: NoiseColorSamplePlayer
Audio file sample player.
Wavetable
Wavetable oscillator with morphing between wavetables.
KarplusStrong
Karplus-Strong plucked string.
FmOscillator
FM oscillator: carrier + modulator.
Additive
Additive synth: sum of partials.
BiquadFilter
Biquad filter (LP, HP, BP, notch, shelf, peaking).
LadderFilter
Moog-style 24dB/oct ladder filter.
FormantFilter
Formant filter (vowel synthesis).
CombFilter
Comb filter.
Adsr
ADSR envelope.
MultiStageEnvelope
Multi-stage envelope (breakpoint sequence).
Lfo
LFO modulator.
SampleHold
Sample & Hold: samples input at rate, holds until next trigger.
Delay
Delay line with feedback.
Reverb
Reverb (Schroeder model).
Chorus
Chorus / flanger.
Compressor
Dynamic range compressor.
Distortion
Distortion / waveshaping.
Panner
Stereo panning.
Gain
Gain / volume.
Limiter
Hard / soft limiter.
StereoWidener
Stereo widener.
BitCrusher
Bit crusher + sample rate reducer.
PitchShift
Pitch shifter (FFT-based approximation).
RingModulator
Ring modulator.
AutoWah
Auto-wah (envelope-following filter).
Mixer
Mixer: sum multiple inputs with individual gains.
Crossfade
Crossfade between two signals.
Constant
Constant value source.
Meter
Pass-through monitor (for metering).
MathOp
Math operations on audio signals.
Fields
op: AudioMathOpOutput
Output node — writes to stereo out.
Trait Implementations§
Source§impl Clone for AudioNodeType
impl Clone for AudioNodeType
Source§fn clone(&self) -> AudioNodeType
fn clone(&self) -> AudioNodeType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for AudioNodeType
impl RefUnwindSafe for AudioNodeType
impl Send for AudioNodeType
impl Sync for AudioNodeType
impl Unpin for AudioNodeType
impl UnsafeUnpin for AudioNodeType
impl UnwindSafe for AudioNodeType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.