pub trait Modulatable<T: Transcendental>: Effect<T> {
// Required methods
fn num_mod_inputs(&self) -> usize;
fn apply_modulation(&mut self, index: usize, value: T);
fn modulation_depth(&self, index: usize) -> f32;
fn set_modulation_depth(&mut self, index: usize, depth: f32);
}Expand description
Effect with modulation
Required Methods§
Sourcefn num_mod_inputs(&self) -> usize
fn num_mod_inputs(&self) -> usize
Number of modulation inputs
Sourcefn apply_modulation(&mut self, index: usize, value: T)
fn apply_modulation(&mut self, index: usize, value: T)
Apply modulation
Sourcefn modulation_depth(&self, index: usize) -> f32
fn modulation_depth(&self, index: usize) -> f32
Modulation depth
Sourcefn set_modulation_depth(&mut self, index: usize, depth: f32)
fn set_modulation_depth(&mut self, index: usize, depth: f32)
Set modulation depth
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".