pub trait ModulatableGenerator<T: Transcendental>: Generator<T> {
// Required methods
fn modulate_frequency(&mut self, amount: T);
fn modulation_index(&self) -> T;
fn set_modulation_index(&mut self, index: T);
}Expand description
Generator with frequency modulation
Supports frequency modulation (FM) for creating complex timbres.
Required Methods§
Sourcefn modulate_frequency(&mut self, amount: T)
fn modulate_frequency(&mut self, amount: T)
Sourcefn modulation_index(&self) -> T
fn modulation_index(&self) -> T
Modulation index (current FM amount)
Sourcefn set_modulation_index(&mut self, index: T)
fn set_modulation_index(&mut self, index: T)
Set modulation index
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".