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 more